-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
46 lines (41 loc) · 1.49 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
[flake8]
exclude =
.git,
doc,
__pycache__,
.tox,
*/wsgi.py,
manage.py,
*/migrations/*,
ignore =
# as per Django's Coding Style
W601,
# Python2-specific comma warnings
C814,
# Do not require presence of docstrings (which is not always useful
# for constructors, modules, or small inline classes such as Meta
# classes in django).
D100, D101, D102, D104, D105, D106, D107
# Docstring should not bitch about whitespaces or blank lines """
D202, D210
# Periods on ends of docstrings should be allowed
D400
# Allow docstrings not in the imperative mood
D401
# Allow line breaks before binary operators (PEP8 allows before or
# after, but not mixing them, so flake8 forbids both by default)
W503
# TODO: Enable B902, if https://github.com/PyCQA/flake8-bugbear/issues/19 is fixed
# This requires the flake8-per-file-ignores package to be installed
per-file-ignores =
# Settings use `import *`, which is usually not a great idea, but
# cannot be helped in the settings, so ignore errors resulting from
# this. It might be more explicit to put this exception in the files
# themselves, but flake8 does not support this.
# https://gitlab.com/pycqa/flake8/issues/399
arta/settings/*.py:F401,F403,F405
# Build an own format string
format = %(code)s %(path)s::%(row)s %(text)s
# as per Django's Coding Style
# see https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/
max-line-length = 119