-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
108 lines (97 loc) · 1.73 KB
/
pyproject.toml
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
[build-system]
requires = [
"setuptools >= 40.9.0",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.black]
target-version = [
"py38",
"py39"
]
exclude = '''
(
\.egg
| \.git
| \.mypy_cache
| \.venv
| build
| dist
| setup.py
)
'''
[tool.isort]
combine_as_imports = true
force_sort_within_sections = true
line_length = 88
profile = "black"
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"FIRSTPARTY",
"LOCALFOLDER",
]
src_paths = ["scripts", "src", "tests"]
[tool.pytest.ini_options]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ELLIPSIS",
]
filterwarnings = [
"error",
]
junit_family = "xunit2"
minversion = 6.0
python_files = "test_*.py"
testpaths = [
"scripts",
"tests",
]
xfail_strict = true
[tool.mypy]
# Display
color_output = true
error_summary = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
# Meta
incremental = true
show_traceback = true
warn_unused_configs = true
# Mode
show_none_errors = true
strict_optional = true
strict_equality = true
check_untyped_defs = true
ignore_missing_imports = true
# Allow
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_expr = false
# Deny
allow_redefinition = false
allow_untyped_globals = false
disallow_subclassing_any = true
disallow_untyped_decorators = true
# Warn
#warn_return_any = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
#disallow_any_decorated = true
#disallow_any_generics = true
#disallow_any_unimported = true
#disallow_incomplete_defs = true
#disallow_untyped_calls = true
#disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"_snadra",
"snadra"
]
ignore_missing_imports = false