diff options
Diffstat (limited to 'Lib/tomllib/mypy.ini')
-rw-r--r-- | Lib/tomllib/mypy.ini | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Lib/tomllib/mypy.ini b/Lib/tomllib/mypy.ini new file mode 100644 index 00000000000..1761dce4556 --- /dev/null +++ b/Lib/tomllib/mypy.ini @@ -0,0 +1,17 @@ +# Config file for running mypy on tomllib. +# Run mypy by invoking `mypy --config-file Lib/tomllib/mypy.ini` +# on the command-line from the repo root + +[mypy] +files = Lib/tomllib +mypy_path = $MYPY_CONFIG_FILE_DIR/../../Misc/mypy +explicit_package_bases = True +python_version = 3.12 +pretty = True + +# Enable most stricter settings +enable_error_code = ignore-without-code +strict = True +strict_bytes = True +local_partial_types = True +warn_unreachable = True |