CICD-063 · Check types
Encyclopedia · Python CI and uv · All snippets
Previous · CICD-062 · Next · CICD-064
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites uv or Python dependencies pinned with fixture application and tests.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
uv run --locked mypy src3. How it works
mypy checks types without running the program. Pin the project version and stubs so errors are comparable across runs.
4. Verify the result
Install project type stubs and keep Python versions aligned with runtime targets.
Validation syntax-validated (Bash parse). Status definitions.