-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use flake8 directly instead of unmaintained pytest plugin
The plugin isn't compatible to newer flake8 versions but doesn't seem to be maintained. So just directly call flake8.
- Loading branch information
1 parent
76dbf37
commit f6d1917
Showing
4 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |