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
ci: run check_e2e_no_raw_requests in make pre-commit for staged tests/e2e files
mateo-berri560dc6dd0d22
diff --git a/scripts/pre_commit_lint.sh b/scripts/pre_commit_lint.shindex cce0cb61c1e..150a4bbf9de 100755--- a/scripts/pre_commit_lint.sh+++ b/scripts/pre_commit_lint.sh@@ -5,6 +5,7 @@# gating CI checks, so a clean run means a green CI lint:# - litellm/ Python staged -> `make lint` (test-linting.yml's lint job)# - tests/e2e Python staged -> `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)# - dashboard staged -> prettier + eslint + lint budgets (test-litellm-ui-build.yml's frontend-lint)# - proxy/types staged -> regenerate dashboard API types and fail on drift (check-ui-api-types.yml)#@@ -112,6 +113,12 @@ if [ -n "$e2e_py_files" ] && [ -z "$litellm_py_files" ]; thenmake lint-e2e-basedpyright || { echo "✗ tests/e2e basedpyright failed. Fix the errors above, then re-run make pre-commit." >&2; status=1; }fi+if [ -n "$e2e_py_files" ]; then+ echo "pre-commit: checking tests/e2e raw HTTP client ban (check_e2e_no_raw_requests)"+ uv run --no-sync python tests/code_coverage_tests/check_e2e_no_raw_requests.py \+ || { echo "✗ Raw HTTP client import in tests/e2e. Route the call through tests/e2e/e2e_http.py, then re-run make pre-commit." >&2; status=1; }+fi+if [ -n "$ui_prettier_files" ] || [ -n "$ui_eslint_files" ]; thenecho "pre-commit: linting dashboard (prettier + eslint + lint budgets)"if [ ! -d ui/litellm-dashboard/node_modules ]; then