-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
67 lines (58 loc) · 1.62 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
[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
rst-roles = py:mod, py:func, py:data, py:const, py:class, py:meth, py:attr, py:exc, py:obj, py:ref
# black
max-line-length = 88
# ignores
extend-ignore =
# # not required or shadowed by other plugins
D I FI TC Q U101 S101 WPS400
# black
WPS220 WPS348 WPS352 E501 C812 C815 C816 E203
# mypy (for __init__)
WPS410 WPS412
# # weird
PIE803 C101 FNE007 FNE008 N812 ANN101 ANN102 WPS110 WPS111 WPS338 WPS407 WPS414 VNE001 CM001
# too many
WPS201 WPS202 WPS204 WPS210 WPS211 WPS214 WPS217 WPS218 WPS221 WPS230 WPS231 WPS234 WPS235 WPS238
# # broken
PIE798 WPS226 WPS354 WPS432 WPS473 WPS507
# fails to understand `raise NotImplementedError` and overloading
U100
# fails to understand enums
WPS115
# fails to understand overloading
WPS428
# fails to understand pipe-unions
WPS465
# fails with same-name class and instance attributes (pydantic & sqlalchemy)
WPS601
# # don't block features
# utils is a module name
WPS100
# f-strings are the best
WPS237 WPS305
# python 2.x is deprecated
WPS306
# pass is a thing
WPS420 WPS604
# nested functions
WPS430
# nested classes
WPS431
# positional-only arguments
WPS451
# try-finally with no except
WPS501
# @staticmethod
WPS602
# methods with no arguments
WPS605
per-file-ignores =
*test*: TN101 FNE005 SCS108 S311 VNE001 WPS118 WPS317 WPS407 WPS425 WPS432 WPS437 WPS440 WPS441 WPS442 WPS507 WPS520 WPS609