2023-12-07 10:01:58 -06:00
|
|
|
[mypy]
|
2025-05-09 00:53:47 +07:00
|
|
|
|
|
|
|
|
# Please, when adding new files here, also add them to:
|
|
|
|
|
# .github/workflows/mypy.yml
|
2025-02-06 18:47:29 +03:00
|
|
|
files =
|
2025-08-12 18:11:18 +03:00
|
|
|
Tools/build/check_extension_modules.py,
|
2025-02-06 18:47:29 +03:00
|
|
|
Tools/build/compute-changes.py,
|
2025-05-15 12:13:03 +03:00
|
|
|
Tools/build/deepfreeze.py,
|
2025-05-09 17:21:49 +03:00
|
|
|
Tools/build/generate-build-details.py,
|
2025-05-07 22:11:04 +03:00
|
|
|
Tools/build/generate_sbom.py,
|
2025-08-12 18:11:18 +03:00
|
|
|
Tools/build/generate_stdlib_module_names.py,
|
2025-05-09 00:53:47 +07:00
|
|
|
Tools/build/verify_ensurepip_wheels.py,
|
2025-05-15 12:13:03 +03:00
|
|
|
Tools/build/update_file.py,
|
|
|
|
|
Tools/build/umarshal.py
|
2025-05-07 22:11:04 +03:00
|
|
|
|
2023-12-07 10:01:58 -06:00
|
|
|
pretty = True
|
|
|
|
|
|
|
|
|
|
# Make sure Python can still be built
|
|
|
|
|
# using Python 3.10 for `PYTHON_FOR_REGEN`...
|
|
|
|
|
python_version = 3.10
|
|
|
|
|
|
|
|
|
|
# ...And be strict:
|
|
|
|
|
strict = True
|
2025-05-07 22:11:04 +03:00
|
|
|
strict_bytes = True
|
|
|
|
|
local_partial_types = True
|
2025-01-25 12:44:23 +03:00
|
|
|
extra_checks = True
|
2023-12-07 10:01:58 -06:00
|
|
|
enable_error_code = ignore-without-code,redundant-expr,truthy-bool,possibly-undefined
|
|
|
|
|
warn_unreachable = True
|