-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autoflake and flake8 options to setup.cfg
- Loading branch information
Showing
4 changed files
with
36 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
[tool:pytest] | ||
asyncio_mode=strict | ||
|
||
[autoflake8] | ||
in-place = True | ||
recursive = True | ||
expand-star-imports = True | ||
exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build | ||
|
||
[flake8] | ||
exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build | ||
# To work with Black | ||
max-line-length = 88 | ||
max-complexity = 18 | ||
show-source = True | ||
statistics = True | ||
# E501: line too long | ||
# W503: Line break occurred before a binary operator | ||
# E203: Whitespace before ':' | ||
# D202 No blank lines allowed after function docstring | ||
ignore = | ||
# B001 Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer `except Exception:`. If you're sure what you're doing, be explicit and write `except BaseException:`. | ||
B001, | ||
# W503 line break before binary operator | ||
W503, | ||
# E722 do not use bare 'except' | ||
E722 |