| 1 |
[mypy] |
| 2 |
|
| 3 |
# Please, when adding new files here, also add them to: |
| 4 |
# .github/workflows/mypy.yml |
| 5 |
files = |
| 6 |
Tools/build/check_extension_modules.py, |
| 7 |
Tools/build/check_warnings.py, |
| 8 |
Tools/build/compute-changes.py, |
| 9 |
Tools/build/deepfreeze.py, |
| 10 |
Tools/build/generate-build-details.py, |
| 11 |
Tools/build/generate_levenshtein_examples.py, |
| 12 |
Tools/build/generate_sbom.py, |
| 13 |
Tools/build/generate_stdlib_module_names.py, |
| 14 |
Tools/build/verify_ensurepip_wheels.py, |
| 15 |
Tools/build/update_file.py, |
| 16 |
Tools/build/umarshal.py |
| 17 |
|
| 18 |
pretty = True |
| 19 |
|
| 20 |
# Make sure Python can still be built |
| 21 |
# using Python 3.10 for `PYTHON_FOR_REGEN`... |
| 22 |
python_version = 3.10 |
| 23 |
|
| 24 |
# ...And be strict: |
| 25 |
strict = True |
| 26 |
strict_bytes = True |
| 27 |
local_partial_types = True |
| 28 |
extra_checks = True |
| 29 |
enable_error_code = ignore-without-code,redundant-expr,truthy-bool,possibly-undefined |
| 30 |
warn_unreachable = True |