This repository was archived by the owner on Apr 2, 2025. It is now read-only.
Enable mypy in pre-commit, and fix issues found by it #165
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: PR Checks | ||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| with: | ||
| python-version: "3.12" | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: pipx install pre-commit | ||
| - name: Run commit checks | ||
| uses: ./.github/actions/pre-commit | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: pipx install poetry==1.7.1 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| cache: poetry | ||
| - name: Install dependencies | ||
| run: poetry install --with=dev | ||
| - name: Run tests | ||
| run: poetry run nox | ||