Skip to content

Commit

Permalink
Update flake8 revision
Browse files Browse the repository at this point in the history
- update version of `flake8` in `pre-commit` config
- `importlib_metadata` in higher versions of python removes deprecated endpoint that is used by older `flake8` in `pre-commit`
- also update the push Action workflow to be more consistent across the jobs regarding versions of stuff
  • Loading branch information
honzaflash committed Dec 3, 2024
1 parent 201acb2 commit f0e9b12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- uses: pre-commit/[email protected]

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9"]
python-version: ["3.8", "3.9", "3.10", "3.12"]
os: [ubuntu-latest]

steps:
Expand Down Expand Up @@ -56,7 +58,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.x

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ repos:
- requirements.txt

- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 7.1.1
hooks:
- id: flake8
1 change: 1 addition & 0 deletions dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- pre-commit
- flake8
- flake8-docstrings
- pytest
Expand Down

0 comments on commit f0e9b12

Please sign in to comment.