-
Notifications
You must be signed in to change notification settings - Fork 112
/
.flake8
44 lines (40 loc) · 1.05 KB
/
.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
38
39
40
41
42
43
44
[flake8]
max-line-length = 79
select = C,E,F,W,B,B950
ignore =
# black https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
E203, E501
# There's nothing wrong with assigning lambdas
E731,
# PEP8 weakly recommends Knuth-style line breaks before binary
# operators
W503, W504
exclude =
# These are directories that it's a waste of time to traverse
.git,
.tox,
.venv,
ansible,
bin,
config,
develop-apps,
docs,
esbuild,
requirements,
node_modules,
site,
venv,
# And directories in cfgov that don't have python files to lint
cfgov/f,
cfgov/jinja2,
cfgov/static_built,
cfgov/templates,
cfgov/unprocessed,
# Generated migration files will throw errors. We need to find a way
# to exclude django-generated migrations while including
# manually-written migrations.
*/migrations/*.py,
# Our settings files might need to conform to different readability
# standards
cfgov/cfgov/settings/*,
# max-complexity = 10