#3147 fix(templates): Run mypy in templates inside of a virtualenv including the package
Pull request opened by
edgarrmondragon
## Summary by Sourcery
Enable in-template mypy type checks by adding a dedicated tox "typing" environment and CI job, migrate tox runs to uvx virtual environments, update scaffolded SQL client type annotations, and bump CI and pre-commit hook versions.
New Features:
• Add CI job for static type checking with mypy in a dedicated tox "typing" environment across templates
Enhancements:
• Switch Actions workflows to use astral-sh/setup-uv and uvx to run tox in isolated virtual environments
• Configure a "typing" tox environment in pyproject.toml with mypy and stub dependencies
• Refine generated SQL client code with proper Context typing, super() usage, and updated method signatures
• Update pre-commit configs by bumping check-jsonschema, ruff, and uv hooks and removing the standalone mypy hook
Build:
• Upgrade svenstaro/upload-release-action to v2.10.0 in build workflows
CI:
• Rename pytest job to "Integration Tests" and remove tox.ini from workflow path filters
• Add Type Checking job and integrate uvx commands into CI workflows for both pytest and mypy runs
• Integrate type checking into the nox templates session by running tox typing environment
meltano/sdk