forked from indico/indico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
71 lines (65 loc) · 2.01 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
60
61
62
63
64
65
66
67
68
69
70
71
[flake8]
max-line-length = 120
# decent quote styles
inline-quotes = single
multiline-quotes = single
docstring-quotes = double
avoid-escape = true
extend-exclude =
build
dist
docs
ext_modules
htmlcov
indico.egg-info
node_modules
.*/
indico.conf
ignore =
# allow omitting whitespace around arithmetic operators
E226
# don't require specific wrapping before/after binary operators
W503
W504
# allow assigning lambdas (it's useful for single-line functions defined inside other functions)
E731
# not all our exceptions are errors
N818
per-file-ignores =
# signals use wildcard imports to expose everything in `indico.core.signals`
indico/core/signals/event/__init__.py:E402,F403,F401
indico/core/signals/__init__.py:F403,F401
# allow long lines in migrations (only do that for raw SQL please)
indico/migrations/versions/*.py:E501
indico/util/mdx_latex_test.py:E501
# allow nicely aligned parametrizations & mixed case functions
indico/*_test.py:E241,N802
# sphinx config has many commented-out variables with no space after `#`
docs/source/conf.py:E265
# legacy code with camelCase
indico/web/http_api/*.py:N802,N803,N806
indico/modules/events/api.py:N802,N803,N806
indico/modules/events/agreements/api.py:N802
indico/modules/events/notes/api.py:N802
indico/modules/rb/api.py:N802
indico/modules/attachments/api/hooks.py:N802
indico/modules/users/api.py:N802
# the config class has some properties that are basically constants
indico/core/config.py:N802
# custom sqlalchemy constructs commonly use lowercase class names
indico/core/db/sqlalchemy/custom/*.py:N801
indico/util/decorators.py:N801
# vendored code - don't care about naming in there
indico/vendor/*.py:N
classmethod_decorators =
classmethod
declared_attr
strict_classproperty
expression
comparator
ignore_names =
_process_GET
_process_POST
_process_PATCH
_process_PUT
_process_DELETE