-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyproject.toml
57 lines (50 loc) · 1.27 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
[build-system]
requires = [
"setuptools>=45",
"setuptools_scm>=6.2",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "tbot/_version.py"
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.8"
mypy_path = "stubs/:./"
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = false
incremental = true
check_untyped_defs = true
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
strict_optional = true
warn_return_any = true
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = [
"tbot.tc.callable",
"tbot_contrib.swupdate.swupdate_script",
# the loader is a mess, don't even try checking it
"tbot.loader",
]
ignore_errors = true
[tool.coverage.run]
omit = ["tbot/tc/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
# We don't need to test code that isn't implemented...
"raise NotImplementedError",
# Don't complain about abstract methods, they aren't run.
"@(abc\\.)?abstractmethod",
# Ignore typing related statements.
"@typing\\.overload",
"if (typing\\.)?TYPE_CHECKING:",
]