-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.cfg
61 lines (56 loc) · 1.37 KB
/
setup.cfg
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
[mypy]
python_version = 3.10
plugins = pydantic.mypy
warn_return_any=True
strict_optional=True
warn_no_return=True
warn_redundant_casts=True
warn_unused_ignores=True
no_implicit_reexport = True
disallow_any_generics = True
#check_untyped_defs = True
#disallow_untyped_defs = True
# No incremental mode
cache_dir=/dev/null
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
[flake8]
max-line-length = 79
docstring-convention = numpy
max-complexity = 10
select =
# B are bugbear checks (including the optionals)
B
B9
# C are complexity checks
C
# D are docstring checks
D
E
F
I
N
W
ignore =
# D1 are public documentation checks
D1
# D400 First line should end with a period, see D205
D400
# D401 First line should be in imperative mood, lots of false positives
D401
# D202 No blank lines allowed after function docstring, conflicts with black
D202
# D205 1 blank line required between summary line and description
D205
# E203 is not PEP8 compliant (see black formatting)
E203
# E501 (line lengths) will be checked with B950 instead
E501
# W503 is not PEP8 compliant (see black formatting)
W503
# B905 `zip()` without an explicit `strict=` parameter
# Introduced in py310, still need to support py39
B905