This seems ok, without excluding a large potential audience. Python 3.10 has 9 months to go before it hits end-of-life. It is unlikely that datalad-core has matured before this time. Python 3.11 was released more than tree years ago. Debian oldstabled (bookworm) contains Python 3.11 already. Python 3.11 is available in Ubuntu's LTS 22.04.
25 lines
752 B
YAML
25 lines
752 B
YAML
name: Type annotation (project)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'datalad_core/**.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 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
|