From eb743a3b267e92504d4f8e59b75de316a6900ab3 Mon Sep 17 00:00:00 2001 From: Yuan Tang Date: Tue, 25 Feb 2025 23:56:22 -0500 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 3 +-- distributions/dependencies.json | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70af72a62..3c6678462 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -91,8 +91,7 @@ repos: language: python pass_filenames: false require_serial: true - files: ^llama_stack/templates/.*$ - files: ^llama_stack/providers/.*/inference/.*/models\.py$ + files: ^llama_stack/templates/.*$|^llama_stack/providers/.*/inference/.*/models\.py$ ci: autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks diff --git a/distributions/dependencies.json b/distributions/dependencies.json index 28f057bdc..1ddedc148 100644 --- a/distributions/dependencies.json +++ b/distributions/dependencies.json @@ -200,9 +200,7 @@ "sentencepiece", "tqdm", "transformers", - "uvicorn", - "sentence-transformers --no-deps", - "torch torchvision --index-url https://download.pytorch.org/whl/cpu" + "uvicorn" ], "hf-endpoint": [ "aiohttp",