-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flake8
59 lines (54 loc) · 1.71 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[flake8]
# Activate rules by plugins
extend-select =
# flake8-assertive
A,
# flake8-bugbear
B, B902, B903,
# pydocstyle (by flake8-docstrings)
D,
# flake8-django
DJ, DJ10, DJ11,
# just don't use these...
ignore =
# as per Django's Coding Style
W601,
# line break before binary operator
W503,
# line length (of code) is handled by black
E501,
per-file-ignores =
calingen/contrib/compilers/copy_paste/__init__.py:W505
calingen/contrib/compilers/download/__init__.py:W505
calingen/contrib/compilers/html_or_download/__init__.py:W505
calingen/contrib/layouts/lineatur/__init__.py:W505
calingen/contrib/layouts/lineatur/lineatur.py:W505
calingen/contrib/layouts/simple_event_list/__init__.py:W505
calingen/contrib/layouts/simple_event_list/__init__.py:W505
calingen/contrib/layouts/year_by_week/__init__.py:W505
calingen/contrib/providers/german_holidays/__init__.py:W505
calingen/forms/generation.py:W505
calingen/models/profile.py:W505
calingen/views/generic.py:W505
tests/forms/*.py:D
tests/interfaces/*.py:D
tests/models/*.py:D
tests/templatetags/*.py:D
tests/views/*.py:D
tests/test_checks.py:D
tests/test_layout_compilation.py:D
# ...and limit flake8 to the project's very own source code
exclude =
.git,
.tox,
docs/source/conf.py,
migrations,
settings_dev.py,
settings_test.py,
# Actually, try to stay below 80 characters for docstrings.
# But enforcing this does not work, when linking to other classes / attributes
# in the first line of the docstring.
# So, let's rely on convention instead.
max-doc-length = 119
# set the used convention for pydocstyle
docstring-convention = numpy