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 0ed017c1a3
commit 4d58147522
3 changed files with 34 additions and 9 deletions

View file

@ -103,9 +103,9 @@ type_checking = [
"torchvision", # For multimodal model type checking
"sqlite-vec", # For SQLite vector store type checking
"faiss-cpu", # For Faiss vector store type checking
"lm-format-enforcer", # For constrained generation type checking
"mcp", # For Model Context Protocol tools type checking
"ollama", # For Ollama provider type checking
# Note: lmformatenforcer is not available in PyPI, so it remains an import-not-found error
]
# These are the dependencies required for running unit tests.
unit = [