mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 04:00:42 +00:00
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:
parent
54d57ad96f
commit
6867ac18f6
3 changed files with 34 additions and 9 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue