aboutsummaryrefslogtreecommitdiff
path: root/.mypy.ini
AgeCommit message (Collapse)AuthorFilesLines
2023-11-26fix broken type annotation imports being ignoredEli Schwartz1-1/+1
If an annotation could not be resolved, it's classified as a "missing import" and our configuration ignored it: ``` Skipping analyzing "mesonbuild.backends": module is installed, but missing library stubs or py.typed marker ``` As far as mypy is concerned, this library may or may not exist, but it doesn't have any typing information at all (may need to be installed first). We ignored this because of our docs/ and tools/ thirdparty dependencies, but we really should not. It is trivial to install them, and then enforce that this "just works". By enforcing it, we also make sure typos get caught.
2023-07-19fix implicit_reexport issues and enforce them going forwardEli Schwartz1-0/+1
This detects cases where module A imports a function from B, and C imports that same function from A instead of B. It's not part of the API contract of A, and causes innocent refactoring to break things.
2020-09-08typing: use follow_imports = silentDaniel Mensinger1-1/+1
2020-09-08typing: update run_mypy and mypy.iniDaniel Mensinger1-4/+22
2020-07-12refactor: name .mypy.ini to reduce visual clutterMichael Hirsch1-0/+5
MyPy looks to .mypy.ini, reducing Meson top-level visual clutter https://mypy.readthedocs.io/en/stable/config_file.html