chore: add lm-format-enforcer and update pre-commit mypy hook

Add lm-format-enforcer to type_checking dependencies and update the
pre-commit mypy hook to use local repo with uv run --group dev --group
type_checking for better integration with dependency groups.

This reduces mypy errors from 73 to 58 (one additional error fixed).
This commit is contained in:
Ashwin Bharambe 2025-10-27 23:52:33 -07:00
parent 54d57ad96f
commit 6867ac18f6
3 changed files with 34 additions and 9 deletions

View file

@ -57,18 +57,17 @@ repos:
hooks:
- id: uv-lock
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.1
- repo: local
hooks:
- id: mypy
name: mypy
additional_dependencies:
- uv==0.6.2
- mypy
- pytest
- rich
- types-requests
- pydantic
- uv==0.7.8
entry: uv run --group dev --group type_checking mypy
language: python
types: [python]
pass_filenames: false
require_serial: true
# - repo: https://github.com/tcort/markdown-link-check
# rev: v3.11.2