generated from niqzart/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flake8
60 lines (51 loc) · 1.92 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
[flake8]
# config
test-func-name-validator-regex = test_.*
suppress-dummy-args = true
literal-inline-quotes = "double"
literal-multiline-quotes = "double"
literal-docstring-quotes = "double"
literal-include-name = true
# black
max-line-length = 88
# ignores
extend-ignore =
# not required or shadowed by other plugins
D I FI TC Q U101 S101 WPS361 WPS400
PT011 # too broad exception in `pytest.raises` (ValueErrors are needed ib pydantic)
# black
WPS348 WPS464 E302 E501 C812 C815
# weird
PIE803 C101 FNE008 ANN101 ANN102 WPS100 WPS111 WPS338
# broken
PIE798 WPS226 WPS354 RST304
WPS322 WPS428 WPS462 # fails for class-attribute docstrings
U100 # fails to understand `raise NotImplementedError`
WPS110 VNE002 # screams at variables in overriden methods
WPS115 # enums use upper-case constants in classes
WPS465 # fails for pipe-union types (bitwise |)
P103 # unreadable (what?)
# too many
WPS201 WPS204 WPS210 WPS211 WPS214 WPS218 WPS219 WPS212 WPS221 WPS227 WPS231 WPS232 WPS234 WPS235
# don't block features
WPS237 # screams at 'complex' f-strings
WPS305 # f-strings are the best
WPS306 # python 2.x is deprecated
WPS410 # __all__ is required with mypy
WPS412 # __init__ for libs is required
WPS420 # pass is a thing
WPS430 # nested functions
WPS431 # nested classes
WPS451 # positional-only arguments
WPS501 # try-finally with no except
WPS600 # subclassing lowercase builtins
WPS602 # @staticmethod
WPS604 # some cringe /w banning constructions, including `pass`
WPS605 # methods with no arguments
# preferences
WPS337 # multiline conditions
WPS352 # multiline loops
per-file-ignores =
__init__.py: F401
*test*: FNE005 SCS108 VNE001 WPS202 WPS317 WPS407 WPS425 WPS432 WPS440 WPS437 WPS441 WPS442 WPS507 WPS520 WPS609
test_fields.py: FNE005 SCS108 VNE001 WPS202 WPS317 WPS407 WPS425 WPS432 WPS440 WPS437 WPS441 WPS442 WPS507 WPS520 WPS609 NU001 NU002