Skip to content
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 #178

Enable mypy in pre-commit, and fix issues found by it

Enable mypy in pre-commit, and fix issues found by it #178

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: ["main"]
jobs:
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: ${{ matrix.python-version }}
cache: poetry
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Sync
run: uv sync
- name: Install dependencies
run: poetry install --with=dev
- name: Execute linters & type checkers
if: ${{ matrix.python-version == 3.12 }}
run: uv run pre-commit run --all-files
- name: Run tests
run: poetry run nox