diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2023-11-26 01:03:08 -0500 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2023-11-26 17:12:52 -0500 |
| commit | caa38dad453905c968ecf1c021e2867f7f4a17e3 (patch) | |
| tree | bd87db11f3b38ff02a005537a033ff4578744b4e /.github/workflows | |
| parent | 319b41b4c9c9d6d776828519b141fea1427fe89e (diff) | |
| download | meson-caa38dad453905c968ecf1c021e2867f7f4a17e3.tar.gz | |
fix broken type annotation imports being ignored
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.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/lint.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 547a520cc..ddedabf7a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -46,7 +46,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.x' - - run: python -m pip install mypy types-PyYAML + - run: python -m pip install mypy coverage types-PyYAML types-tqdm types-chevron - run: python run_mypy.py --allver env: PYTHONUNBUFFERED: 1 |
