chore: stricter mypy checking
This commit is contained in:
+16
-20
@@ -18,6 +18,7 @@ multi_line_output = 3
|
||||
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
minversion = 6.0
|
||||
junit_family = "xunit2"
|
||||
testpaths = [
|
||||
"test",
|
||||
@@ -26,7 +27,6 @@ testpaths = [
|
||||
|
||||
|
||||
[tool.mypy]
|
||||
minversion = 6.0
|
||||
python_version = 3.7
|
||||
files = [
|
||||
"cibuildwheel/*.py",
|
||||
@@ -36,33 +36,29 @@ files = [
|
||||
]
|
||||
warn_unused_configs = true
|
||||
warn_redundant_casts = true
|
||||
|
||||
# Don't require typed functions for tests
|
||||
[[tool.mypy.overrides]]
|
||||
module = ["test", "unit_test"]
|
||||
check_untyped_defs = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = "cibuildwheel"
|
||||
disallow_any_generics = true
|
||||
disallow_subclassing_any = true
|
||||
disallow_untyped_calls = true
|
||||
disallow_untyped_defs = true
|
||||
disallow_incomplete_defs = true
|
||||
check_untyped_defs = true
|
||||
disallow_untyped_decorators = true
|
||||
no_implicit_optional = true
|
||||
warn_unused_ignores = true
|
||||
warn_return_any = true
|
||||
no_implicit_reexport = true
|
||||
strict_equality = true
|
||||
warn_unused_ignores = true
|
||||
check_untyped_defs = true
|
||||
|
||||
disallow_subclassing_any = true
|
||||
disallow_any_generics = true
|
||||
warn_return_any = true
|
||||
no_implicit_optional = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = "cibuildwheel.*"
|
||||
disallow_untyped_defs = true
|
||||
disallow_untyped_calls = true
|
||||
disallow_incomplete_defs = true
|
||||
disallow_untyped_decorators = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
"setuptools",
|
||||
"pytest", # ignored in pre-commit to speed up check
|
||||
"bashlex",
|
||||
"toml.encoder", # missing from stub package
|
||||
"toml.encoder", # encoder missing from stub package
|
||||
"bracex",
|
||||
"importlib_resources",
|
||||
"nox",
|
||||
|
||||
Reference in New Issue
Block a user