diff --git a/.github/workflows/mypy-pr.yml b/.github/workflows/mypy-pr.yml index b936223..cbc3b2e 100644 --- a/.github/workflows/mypy-pr.yml +++ b/.github/workflows/mypy-pr.yml @@ -31,11 +31,13 @@ jobs: if: steps.changed-py-files.outputs.any_changed == 'true' run: | # get any type stubs that mypy thinks it needs - hatch run types:mypy --install-types --non-interactive --follow-imports skip ${{ steps.changed-py-files.outputs.all_changed_files }} + hatch run types:mypy --install-types --non-interactive --ignore-missing-imports --follow-imports skip ${{ steps.changed-py-files.outputs.all_changed_files }} # run mypy on the modified files only, and do not even follow imports. # this results is a fairly superficial test, but given the overall # state of annotations, we strive to become more correct incrementally # with focused error reports, rather than barfing a huge complaint # that is unrelated to the changeset someone has been working on. - # run on the oldest supported Python version - hatch run types:mypy --python-version 3.11 --follow-imports skip --pretty --show-error-context ${{ steps.changed-py-files.outputs.all_changed_files }} + # run on the oldest supported Python version. + # specify `--ignore-missing-imports` until the datalad-packages have + # type stubs for all their modules. + hatch run types:mypy --python-version 3.11 --ignore-missing-imports --follow-imports skip --pretty --show-error-context ${{ steps.changed-py-files.outputs.all_changed_files }} diff --git a/.github/workflows/mypy-project.yml b/.github/workflows/mypy-project.yml index 276506d..c6b2654 100644 --- a/.github/workflows/mypy-project.yml +++ b/.github/workflows/mypy-project.yml @@ -25,5 +25,7 @@ jobs: # get any type stubs that mypy thinks it needs hatch run types:mypy --install-types --non-interactive --follow-imports skip datalad_core # run mypy on the full project. - # run on the oldest supported Python version - hatch run types:mypy --python-version 3.11 --pretty --show-error-context datalad_core + # run on the oldest supported Python version. + # specify `--ignore-missing-imports` until the datalad-packages have + # type stubs for all their modules. + hatch run types:mypy --python-version 3.11 --ignore-missing-imports --pretty --show-error-context datalad_core