forked from orinoco/things-enrichment-tools
This is presently not possible for the cases where we need more flexibility (e.g. fetch-depth=0). But this plan is to make that possible.
25 lines
825 B
YAML
25 lines
825 B
YAML
name: Type annotation (project)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'things_enrichment_tools/**.py'
|
|
- '!**/tests/**.py'
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: debian-latest
|
|
steps:
|
|
- name: Checkout project
|
|
uses: https://hub.psychoinformatics.de/actions/checkout-action@v1
|
|
- 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 things_enrichment_tools
|
|
# run mypy on the full project.
|
|
# run on the oldest supported Python version
|
|
hatch run types:mypy --python-version 3.12 --pretty --show-error-context things_enrichment_tools
|