-
Notifications
You must be signed in to change notification settings - Fork 3
/
.flake8
37 lines (32 loc) · 907 Bytes
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[flake8]
ignore =
E203,
E231,
# F841 - Local variable is assigned but never used
# Ignoring the rule since it also flags variable names that starts with _
# PR to ignore only single '_' - https://github.com/PyCQA/pyflakes/pull/335
# rather than startswith('_') - https://github.com/PyCQA/pyflakes/pull/334
F841,
W503,
# W504 - line break after binary operator
W504,
C901
per-file-ignores =
# Common imports for all files in api/barriers/history
./api/barriers/history/__init__.py:F401
./config/settings/*:F401,F403,F405
*/urls.py:E501
# flake8-quotes - https://pypi.org/project/flake8-quotes/
# as per Black the project is using double quotes
inline-quotes = double
docstring-quotes = "
multiline-quotes = "
max-complexity = 10
max-line-length = 120
exclude =
src,
migrations,
__pycache__,
env,
venv,
node_modules