build: Merge redundant "files" field for codegen check in .pre-commit-config.yaml (#1261)

# What does this PR do?

Merges the two "files" field for codegen check. This also fixes the
broken main branch CI build.

## Test Plan


```
Distribution Template Codegen............................................Passed
- hook id: distro-codegen
- duration: 367.44s

```

---------

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-02-25 23:56:22 -05:00 committed by GitHub
parent 55eb257459
commit eb743a3b26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -91,8 +91,7 @@ repos:
language: python language: python
pass_filenames: false pass_filenames: false
require_serial: true require_serial: true
files: ^llama_stack/templates/.*$ files: ^llama_stack/templates/.*$|^llama_stack/providers/.*/inference/.*/models\.py$
files: ^llama_stack/providers/.*/inference/.*/models\.py$
ci: ci:
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

View file

@ -200,9 +200,7 @@
"sentencepiece", "sentencepiece",
"tqdm", "tqdm",
"transformers", "transformers",
"uvicorn", "uvicorn"
"sentence-transformers --no-deps",
"torch torchvision --index-url https://download.pytorch.org/whl/cpu"
], ],
"hf-endpoint": [ "hf-endpoint": [
"aiohttp", "aiohttp",