Adding mypy configuration to pyproject (#6116)

* Adding mypy configuration to pytproject

* Correcting specifications for pyproject.toml
This commit is contained in:
Tanvi Moharir 2021-06-19 23:09:00 +05:30 committed by GitHub
parent b2db8579f3
commit a4aa852a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 11 deletions

View file

@ -1,11 +0,0 @@
[mypy]
show_error_codes = True
check_untyped_defs = True
[mypy-cryptography.hazmat.bindings._openssl]
ignore_missing_imports = True
[mypy-iso8601]
ignore_missing_imports = True
[mypy-pretend]
ignore_missing_imports = True

View file

@ -20,3 +20,16 @@ markers = [
"skip_fips: this test is not executed in FIPS mode",
"supported: parametrized test requiring only_if and skip_message",
]
[tool.mypy]
show_error_codes = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"cryptography.hazmat.bindings._openssl",
"iso8601",
"pretend"
]
ignore_missing_imports = true