-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flake8
110 lines (107 loc) · 2.37 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[flake8]
select =
# flake8-bandit
S
# flake-brokenline
N
# flake8-bugbear
B
# flake8-comprehensions
C4
# flake8-debugger
T
# flake8-docstrings
D
# flake8-eradicate
E80
# flake8-string-format
P
# mccabe
C90
# pep8-naming
N
# pycodestyle
E
W
# pyflakes
F
# wemake-python-styleguide
WPS
# darglint
DAR
ignore =
# pycodestyle
# Allow for line breaks where Black decides are valid
W503
# Let Black put whitespace before :
E203
# Allow for long lines since we delegate to Black for enforcement
E501
# Allow custom exceptions whose name ends with "Exception"
N818
# Don't warn on use of asserts
S101
# wemake-python-styleguide
# Allow blacklisted variable names that can be clear enough in method context
WPS110
# Allow upper-case constants in Enum subclasses
WPS115
# Allow many module members
WPS202
# Allow "too many"
WPS211
# Ignore 'too many return statements' - noqa parse inconsistent between py38 vs prior
WPS212
# Allow f-strings
WPS305
# FIXME Allow '%' string formatting, for logging strings
# https://github.com/wemake-services/wemake-python-styleguide/issues/1304
WPS323
# Ignore 'too many public instance attributes'
# https://github.com/wemake-services/wemake-python-styleguide/issues/2448
WPS230
# Ignore too many `assert` statements
WPS218
# Various WPS refactor heavy warnings to ignore that currently have a poor risk/reward tradeoff.
WPS111
WPS407
# too many methods in class
WPS214
# formatting of multi line string when entering painless script
WPS462
# overused expression
WPS204
# excludes lines that start with dot
WPS348
# use type to compare compare types
WPS516
# multiline if conditions
WPS337
exclude =
.venv
venv
*.md
inline_quotes = double
max_line_length = 79
max_local_variables = 10
max_string_usages = 20
max_expressions = 20
show_source = true
extended_default_ignore = []
max_imports = 20
docstring_style = numpy
per-file-ignores =
tests/*:
# Don't require docstrings in tests
DAR101
DAR201
DAR301
D100
D101
D102
D103
D104
D105
D107
# String literal overuse
WPS226