[chore] Convert importlib read_text and open_text uses to newer files() syntax #439
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: Typecheck | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| - 'AUTHORS' | |
| jobs: | |
| typecheck: | |
| name: Typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: '3.13' | |
| - uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1 | |
| with: | |
| version: 'latest' | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run mypy | |
| run: | | |
| uv run --no-sync --frozen -- python -m ensurepip | |
| uv run --no-sync --frozen -- python -m mypy --no-pretty --install-types --non-interactive . |