Skip to content

Commit

Permalink
flake8: move all flake8 config to setup.cfg
Browse files Browse the repository at this point in the history
flake8 no longer supports reading config from both tox.ini and setup.cfg

https: //github.com/PyCQA/flake8/issues/1630

Change-Id: I479a2f75866ea5e58f547647665113ceabcec1ad
  • Loading branch information
b4ldr committed Aug 1, 2022
1 parent 7f4a6d0 commit 1024fa9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ ignore_errors = True

[flake8]
application-package-names = homer
max-line-length = 120
statistics = True
ignore = W503 # Line break on binary operators, W504 is enforced instead
import-order-style = edited
# Do not specify application-package-names to avoid to manually keep the list of Org-wide packages
# application-package-names =
# Mark homer as local to separate its imports
application-import-names = homer

[tool:pytest]
log_level = DEBUG
9 changes: 0 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,3 @@ deps =
prospector: .[prospector]
!prospector: .[tests]

[flake8]
max-line-length = 120
statistics = True
ignore = W503 # Line break on binary operators, W504 is enforced instead
import-order-style = edited
# Do not specify application-package-names to avoid to manually keep the list of Org-wide packages
# application-package-names =
# Mark homer as local to separate its imports
application-import-names = homer

0 comments on commit 1024fa9

Please sign in to comment.