-
Notifications
You must be signed in to change notification settings - Fork 38
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
e7fb35b
commit b6a3798
Showing
7 changed files
with
15 additions
and
11 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,8 @@ | ||
[flake8] | ||
extend-exclude = | ||
*/migrations/* | ||
*/settings/* | ||
*/tests/* | ||
per-file-ignores = | ||
__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 |
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
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