fix: enable and fix full type checking (#509)

* fix: enable and fix fully type checking

* chore: pre-commit autoupdate

* refactor: pull types out to file
This commit is contained in:
Henry Schreiner
2021-01-02 14:32:55 -05:00
committed by GitHub
parent bc8716c188
commit 2a73fee411
12 changed files with 110 additions and 87 deletions
+14 -4
View File
@@ -79,12 +79,14 @@ junit_family=xunit2
[mypy]
python_version = 3.6
files = cibuildwheel,test
files = cibuildwheel,test,unit_test
warn_unused_configs = True
warn_redundant_casts = True
[mypy-cibuildwheel]
[mypy-test.*]
check_untyped_defs = True
[mypy-cibuildwheel.*,unit_test.*]
disallow_any_generics = True
disallow_subclassing_any = True
disallow_untyped_calls = True
@@ -98,5 +100,13 @@ warn_return_any = True
no_implicit_reexport = True
strict_equality = True
[mypy-pytest,setuptools]
[mypy-setuptools.*]
ignore_missing_imports = True
# Ignored for pre-commit to speed up check
# Not ignored if manually running and pytest installed
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-bashlex.*]
ignore_missing_imports = True