forked from snok/flake8-type-checking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
62 lines (56 loc) · 1 KB
/
setup.cfg
File metadata and controls
62 lines (56 loc) · 1 KB
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
[flake8]
ignore=
# D104 Missing docstring in public package
D104,
# D100 Missing docstring in public module
D100,
# D107 Missing docstring in __init__
D107,
# ANN101 Missing type annotation for self in method
ANN101,
# W503 line break before binary operator
W503,
SIM110
select =
E, F, N, W
# Bugbear
B, B950,
# Comprehensions
C,
# Print
T,
# Mutable
M,
# Simplify
SIM,
# Pytest-style
PT,
# Docstrings
D,
# Annotations
ANN,
# Type-checking
TC, TC1,
# printf-formatting
MOD
exclude =
.git,
.venv
.idea,
__pycache__,
tests/*
max-complexity = 15
max-line-length = 120
[mypy]
show_error_codes = True
warn_unused_ignores = False
strict_optional = True
incremental = True
ignore_missing_imports = True
warn_redundant_casts = True
warn_unused_configs = True
warn_no_return = False
disallow_untyped_defs = True
local_partial_types = True
[mypy-tests.*]
disallow_untyped_defs = False