Run mypy in pre-commit

This commit is contained in:
Yurii Motov
2026-02-02 18:43:09 +01:00
parent 9348a5e2cf
commit 8d1ea0941b
2 changed files with 8 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ jobs:
pyproject.toml
uv.lock
- name: Install Dependencies
run: uv sync --locked --extra all
run: uv sync --locked --group tests --extra all
- name: Run prek - pre-commit
id: precommit
run: uvx prek run --from-ref origin/${GITHUB_BASE_REF} --to-ref HEAD --show-diff-on-failure

View File

@@ -30,6 +30,13 @@ repos:
language: unsupported
types: [python]
- id: local-mypy
name: mypy check
entry: uv run mypy fastapi
require_serial: true
language: unsupported
pass_filenames: false
- id: add-permalinks-pages
language: unsupported
name: add-permalinks-pages