forked from EcoG-io/iso15118
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
56 lines (51 loc) · 1.84 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
[flake8]
max-line-length = 88
inline-quotes = "
ignore = D204
ignore-decorators=property
rst-roles =
class,
func,
ref,
rst-directives =
envvar,
exception,
extend-ignore =
ANN101,ANN102,
D100, D101, D104,
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,E231,
W503,
# Google Python style is not RST until after processed by Napoleon
# See https://github.com/peterjc/flake8-rst-docstrings/issues/17
RST201,RST203,RST301,RST210
P101,
N812,
WPS110,WPS111,WPS114,
WPS201,WPS202,WPS210,WPS211,WPS214,WPS221,WPS226,WPS229,WPS232,WPS300,WPS305
WPS306,WPS323,WPS326,WPS332,WPS337,
WPS402,WPS412,
WPS437,
WPS600,WPS602
# Trailing comma check is incompatible with black
# since flake8 applies it to single-line cases as well
C812,
max-arguments = 6
per-file-ignores =
# Allow the following in tests:
# - asserts (S101)
# - shadowing variables, which would object to Pytest fixtures (WPS442)
# - arbitrarily long function names (WPS118)
# - more than seven test functions per file (WPS202)
# - Missing docstring in public module (D100)
# - Missing docstring in public function (D103)
# - Overused expression: 8 > 7 (WPS204)
# - Found too many arguments: 6 > 5 (WPS211)
# - Found too many `assert` statements: 6 > 5 (WPS218)
# - Calling "private" methods, for testing purposes (WPS437)
tests/*:S101,WPS442,WPS118,WPS202,D100, D103, WPS211, WPS218
test_*:S101,WPS442,WPS118,WPS202,WPS204,WPS211,WPS218,WPS437,D100,D103
# Allow the following in __init__ files:
# Unused imports, since this is to enable their use elsewhere (F401)
__init__.py: F401
tests/*:ANN201,D100,D102,D103,S101,WPS114,WPS115,WPS118,WPS202,WPS204,WPS210,WPS218,WPS221,WPS232,WPS407,WPS420,WPS421,WPS430,WPS432,WPS437,WPS442,WPS501,WPS600,WPS609