| 1 | # Config file for running mypy on libregrtest. |
| 2 | # Run mypy by invoking `mypy --config-file Lib/test/libregrtest/mypy.ini` |
| 3 | # on the command-line from the repo root |
| 4 | |
| 5 | [mypy] |
| 6 | files = Lib/test/libregrtest |
| 7 | explicit_package_bases = True |
| 8 | python_version = 3.12 |
| 9 | platform = linux |
| 10 | pretty = True |
| 11 | |
| 12 | # Enable most stricter settings |
| 13 | enable_error_code = ignore-without-code |
| 14 | strict = True |
| 15 | |
| 16 | # Various stricter settings that we can't yet enable |
| 17 | # Try to enable these in the following order: |
| 18 | disallow_any_generics = False |
| 19 | disallow_incomplete_defs = False |
| 20 | disallow_untyped_calls = False |
| 21 | disallow_untyped_defs = False |
| 22 | check_untyped_defs = False |
| 23 | warn_return_any = False |
| 24 | |
| 25 | disable_error_code = return |
| 26 | |
| 27 | # Enable --strict-optional for these ASAP: |
| 28 | [mypy-Lib.test.libregrtest.main.*,Lib.test.libregrtest.run_workers.*] |
| 29 | strict_optional = False |
| 30 | |
| 31 | # Various internal modules that typeshed deliberately doesn't have stubs for: |
| 32 | [mypy-_abc.*,_opcode.*,_overlapped.*,_testcapi.*,_testinternalcapi.*,test.*] |
| 33 | ignore_missing_imports = True |