Merge pull request 'flake8 fix' (#4) from devops into main
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #4
This commit is contained in:
36
.flake8
36
.flake8
@@ -1,34 +1,6 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 100
|
max-line-length = 88
|
||||||
extend-ignore =
|
extend-ignore = E501,E203,W503,F401,W291,W293,F541,E402,E302,E129,E999
|
||||||
# Игнорируем некоторые правила для CI
|
|
||||||
E501, # line too long (handled by black)
|
|
||||||
E203, # whitespace before ':' (conflicts with black)
|
|
||||||
W503, # line break before binary operator (conflicts with black)
|
|
||||||
F401, # imported but unused (will be handled later)
|
|
||||||
W291, # trailing whitespace (cosmetic)
|
|
||||||
W293, # blank line contains whitespace (cosmetic)
|
|
||||||
F541, # f-string is missing placeholders (minor)
|
|
||||||
E402, # module level import not at top (some are intentional)
|
|
||||||
E302, # expected 2 blank lines (cosmetic)
|
|
||||||
E129, # visually indented line with same indent (minor)
|
|
||||||
E999 # syntax error (will cause other failures anyway)
|
|
||||||
E203, # whitespace before ':' (conflicts with black)
|
|
||||||
W503 # line break before binary operator (conflicts with black)
|
|
||||||
|
|
||||||
exclude =
|
exclude = .git,__pycache__,.drone.yml*,build,dist,*.egg-info,.venv,venv,.tox
|
||||||
.git,
|
per-file-ignores = __init__.py:F401,tests/*.py:E501
|
||||||
__pycache__,
|
|
||||||
.drone.yml*,
|
|
||||||
build,
|
|
||||||
dist,
|
|
||||||
*.egg-info,
|
|
||||||
.venv,
|
|
||||||
venv,
|
|
||||||
.tox
|
|
||||||
|
|
||||||
per-file-ignores =
|
|
||||||
# Allow imports and setup in __init__.py files
|
|
||||||
__init__.py:F401
|
|
||||||
# Allow longer lines in test files
|
|
||||||
tests/*.py:E501
|
|
||||||
|
|||||||
Reference in New Issue
Block a user