-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flake8 config to load properly in precommit
Also set B019 as ignored.
- Loading branch information
Showing
2 changed files
with
4 additions
and
9 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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
[flake8] | ||
exclude = .git,.tox,__pycache__,.eggs,dist,.venv*,docs,build,_build | ||
# we enforce 80 char width with `black` "loosely", so flake8 should be set to | ||
# not fail on up to 90 chars of width | ||
exclude = .git,.tox,__pycache__,dist,.venv*,docs,build | ||
max-line-length = 90 | ||
|
||
# based on the flake8 conf for `black` itself: | ||
# https://github.com/ambv/black/blob/master/.flake8 | ||
# | ||
# W503/W504 conflict, black causes E203 | ||
ignore = W503,W504,E203, | ||
# black related: W503/W504 conflict, black causes E203 | ||
ignore = W503,W504,E203,B019 |
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