[flake8] add default configuration

This commit is contained in:
odrling 2021-02-05 19:22:22 +01:00
parent a6df38721a
commit ff36143f08
2 changed files with 30 additions and 0 deletions

28
.flake8 Normal file
View file

@ -0,0 +1,28 @@
[flake8]
ignore =
# line length < 80
E501,
# spaces around keywords
E251,
# lambda expressions
E731,
# line break before binary operator
W503,
# blank line at end of file
W391,
# whitespace around arithmetic operator
E226,
# ambiguous variable name
E741,
per-file-ignores =
__init__.py:
# imported but unused
F401,
# unable to detect undefined names
F403,
# comments should start with space
example.local_settings.py: E265,
exclude = .git,.venv,__pycache__

2
.gitignore vendored
View file

@ -137,3 +137,5 @@ Cache
.netrwhist
/.config/nvim/bundle
# flake8
!/.flake8