Skip to content

Commit

Permalink
Use flake8 directly instead of unmaintained pytest plugin
Browse files Browse the repository at this point in the history
The plugin isn't compatible to newer flake8 versions but doesn't seem to
be maintained. So just directly call flake8.
  • Loading branch information
tobiasbrunner committed Oct 3, 2023
1 parent 76dbf37 commit f6d1917
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
per-file-ignores =
*/migrations/* ALL
*/tests/* ALL
__init__.py F401 F403
max-line-length = 109
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
pip install -r requirements-tests.txt
- name: Run unit tests
run: ./runtests.py --no-cov --no-vici
- name: Run flake8
run: flake8 strongMan/

docker:
runs-on: ubuntu-latest
Expand Down
8 changes: 1 addition & 7 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
[pytest]
addopts = --tb=short --flake8
addopts = --tb=short
filterwarnings =
error
ignore:SelectableGroups dict interface is deprecated::flake8
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning
flake8-ignore =
*/migrations/* ALL
*/tests/* ALL
__init__.py F401 F403
flake8-max-line-length = 109
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r requirements.txt
flake8
pytest==7.4.2
pytest-django==4.1.0
pytest-flake8==1.0.7
coverage==5.3.1

0 comments on commit f6d1917

Please sign in to comment.