The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(check): trigger the test-tree checks on the gate script and drop the scope comment
mateo-berrie3366dddf44c
diff --git a/scripts/pre_commit_lint.sh b/scripts/pre_commit_lint.shindex ab84d2d518a..f245803408c 100755--- a/scripts/pre_commit_lint.sh+++ b/scripts/pre_commit_lint.sh@@ -12,7 +12,8 @@# - litellm/ Python -> `make lint` (test-linting.yml's lint job)# - tests/e2e Python -> `make lint-e2e-basedpyright` (test-linting.yml's e2e type-check step)# + raw HTTP client ban (test-code-quality.yml's check_e2e_no_raw_requests)-# - tests/ Python, ruff-tests.toml, test-quality-budget.json, scripts/check_test_quality.py+# - tests/ Python, ruff-tests.toml, test-quality-budget.json, scripts/check_test_quality.py,+# scripts/test_quality_gate.py# -> ruff over ruff-tests.toml + `make lint-test-quality` (test-linting.yml's# test-tree ruff and test-quality budget steps)# - dashboard -> prettier + eslint + lint budgets (test-litellm-ui-build.yml's frontend-lint)@@ -91,14 +92,11 @@ existing_files() {litellm_py_pattern='^litellm/.*\.py$'e2e_py_pattern='^tests/e2e/.*\.py$'-test_tree_pattern='^(tests/.*\.py|ruff-tests\.toml|test-quality-budget\.json|scripts/check_test_quality\.py)$'+test_tree_pattern='^(tests/.*\.py|ruff-tests\.toml|test-quality-budget\.json|scripts/(check_test_quality|test_quality_gate)\.py)$'spec_pattern='^(litellm/(proxy|types)/.*|ui/litellm-dashboard/(scripts/gen-api-types\.mjs|package\.json|package-lock\.json|src/lib/http/schema\.d\.ts))$'ui_prettier_pattern='^ui/litellm-dashboard/.*\.(js|jsx|ts|tsx|mjs|cjs|json|css|scss|md|mdx|yml|yaml|html)$'ui_eslint_pattern='^ui/litellm-dashboard/.*\.(js|jsx|ts|tsx|mjs|cjs)$'-# CI's lint job (test-linting.yml) is make lint: litellm/ checks plus two test-tree-# steps (ruff over ruff-tests.toml and the test-quality budget). Trigger the slow-# make lint on litellm/ files only; without them, the test-tree steps run on their own below.litellm_py_files=$(scope_match "$litellm_py_pattern")e2e_py_files=$(scope_match "$e2e_py_pattern")test_tree_files=$(scope_match "$test_tree_pattern")diff --git a/tests/test_litellm/test_pre_commit_lint.py b/tests/test_litellm/test_pre_commit_lint.pyindex e17abf2fa9f..b84cb8aa657 100644--- a/tests/test_litellm/test_pre_commit_lint.py+++ b/tests/test_litellm/test_pre_commit_lint.py@@ -472,7 +472,13 @@ def test_tests_only_change_runs_the_whole_test_tree_ruff_and_the_quality_gate(tm@pytest.mark.parametrize("changed",- ["ruff-tests.toml", "test-quality-budget.json", "scripts/check_test_quality.py", "tests/e2e/test_x.py"],+ [+ "ruff-tests.toml",+ "test-quality-budget.json",+ "scripts/check_test_quality.py",+ "scripts/test_quality_gate.py",+ "tests/e2e/test_x.py",+ ],)def test_test_tree_lint_inputs_trigger_the_test_tree_checks(tmp_path: Path, changed: str) -> None:repo, bin_dir = _sandbox(tmp_path)