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
feat: strengthen coding conventions in CLAUDE.md (#30333)
Mateo Wang6f8e6adf2374
diff --git a/CLAUDE.md b/CLAUDE.mdindex 758eac7e266..93059febb28 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -57,11 +57,13 @@ Follow these coding conventions for new/updated code (a three-line fix in a lega- Composition over inheritance- Never-nester: early returns over deep nesting- Don't throw; model failures as values (One function (e.g., raise_public) maps error union to existing public exception contracts via exhaustive match + assert_never)-- No mutation; instead of mutable lists and dicts, prefer tuples, NamedTuples, frozen dataclasses, etc.+- No mutation; don't reassign variables. Instead of mutable lists and dicts, prefer tuples, frozen dataclasses (with slots=True), etc.- Use dependency injection-- Fully typed; no `Any` or coarse types like dict[str, Any]. Every function parameter must be strongly typed+- Fully typed; no `Any` or coarse types like `dict[str, Any]` or just `dict`. Every function parameter must be strongly typed- Use tagged unions + match- No monster files or god objects+- No file sprawl: deliberate file and folder structure+- Standard over hand-rolled: use the official SDK or a library where one exists; where none does, follow industry standards instead of inventing local conventionsFollow conventional commits for commit names and PR titles