mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-142859: Add `Tools/check-c-api-docs` to mypy check (GH-142860)
(cherry picked from commit 248eb3efb3)
Co-authored-by: sobolevn <mail@sobolevn.me>
19 lines
403 B
INI
19 lines
403 B
INI
[mypy]
|
|
files = Tools/check-c-api-docs/
|
|
pretty = True
|
|
|
|
# We need `_colorize` import:
|
|
mypy_path = $MYPY_CONFIG_FILE_DIR/../../Misc/mypy
|
|
|
|
# Make sure Python can still be built
|
|
# using Python 3.13 for `PYTHON_FOR_REGEN`...
|
|
python_version = 3.13
|
|
|
|
# ...And be strict:
|
|
strict = True
|
|
extra_checks = True
|
|
enable_error_code =
|
|
ignore-without-code,
|
|
redundant-expr,
|
|
truthy-bool,
|
|
possibly-undefined,
|