Watch
1
0
Fork
You've already forked git-lad
0
forked from datalad/git-lad
git-lad/.forgejo/workflows/mypy-project.yml
Michael Hanke ad66cebb87
rf: rename to git-lad
Thanks Matthias! It makes a lot of sense: it is the DataLad that is more
like Git.

Now it is a Git subcommand.

This also opens the path for extensions written in any language ... same
pattern (git-lab-<subcommand> ...)
2026-01-22 18:58:40 +01:00

25 lines
737 B
YAML

name: Type annotation (project)
on:
push:
paths:
- 'git_lad/**.py'
- '!**/tests/**.py'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install hatch
run: uv tool install hatch
- name: Type check project
run: |
# get any type stubs that mypy thinks it needs
hatch run types:mypy --install-types --non-interactive --follow-imports skip git_lad
# 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 git_lad