chore: replace mypy with ty for type checking #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Type check | |
| on: # yamllint disable-line rule:truthy | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| - v* | |
| pull_request: | |
| branches: | |
| - master | |
| - v* | |
| # ty runs here rather than on pre-commit.ci, which blocks the network access ty | |
| # needs to resolve this project's dependencies. | |
| jobs: | |
| ty: | |
| name: ty | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v9 | |
| with: | |
| enable-cache: true | |
| python-version: '3.11' | |
| - name: Run ty | |
| run: uv run --frozen ty check |