Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project template cruft, dependencies #114

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/smkent/cookie-python",
"commit": "ef0eb856151aa6b4a7442a6c3e8ceb6511203ac2",
"commit": "dee411e1e91b735d5df2ca480c611b21a4d371be",
"context": {
"cookiecutter": {
"project_name": "jmapc",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/actions/python-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
python3 -m pip install --upgrade requests

- name: 🐍 Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
id: setuppy
with:
python-version: ${{ inputs.python_version }}
Expand All @@ -41,7 +41,7 @@ runs:
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV

- name: 🪝 Cache pre-commit hooks
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: "pre-commit-${{ runner.os }}-python\
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
ENABLE_PYPI_PUBLISH: true
ENABLE_TEST_PYPI_PUBLISH: true
RELEASE_PYTHON_VERSION: "3.12"
RELEASE_POETRY_VERSION: "1.6"
RELEASE_POETRY_VERSION: "1.8"

on:
push:
Expand All @@ -22,7 +22,7 @@ jobs:

steps:
- name: 💾 Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🐍 Set up Python project with Poetry
uses: ./.github/workflows/actions/python-poetry
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
- "3.11"
- "3.12"
poetry-version:
- "1.6"
- "1.8"

runs-on: ${{ matrix.os }}-latest
steps:
- name: 💾 Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🐍 Set up Python project with Poetry
uses: ./.github/workflows/actions/python-poetry
Expand All @@ -43,13 +43,15 @@ jobs:
run: poetry run poe test

- name: 🚒 Create test summary
uses: test-summary/action@v1
uses: test-summary/action@v2
if: success() || failure()
with:
paths: ./.pytest_results.xml

- name: 📊 Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ env.ENABLE_COVERAGE == 'true' }}
with:
fail_ci_if_error: true
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.2.0
rev: 24.4.2
hooks:
- id: black
args: ["--config", "pyproject.toml"]
Expand All @@ -18,14 +18,14 @@ repos:
- id: isort
args: ["--show-config"]
- repo: https://github.com/pycqa/bandit
rev: 1.7.7
rev: 1.7.9
hooks:
- id: bandit
additional_dependencies: ['.[toml]']
args: ["--configfile", "pyproject.toml"]
exclude: '^tests/'
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -34,11 +34,11 @@ repos:
- flake8-simplify
- pep8-naming
- repo: https://github.com/pycqa/autoflake
rev: v2.3.0
rev: v2.3.1
hooks:
- id: autoflake
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
rev: v3.16.0
hooks:
- id: pyupgrade
args: ["--keep-runtime-typing"]
Expand Down
Loading