Skip to content

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]

docs(code_quality.md): add doc on litellm code qa

Krrish Dholakia121b493fe815
diff --git a/docs/my-website/docs/extras/code_quality.md b/docs/my-website/docs/extras/code_quality.md
new file mode 100644
index 00000000000..81b72a76dad
--- /dev/null
+++ b/docs/my-website/docs/extras/code_quality.md
@@ -0,0 +1,12 @@
+# Code Quality
+
+🚅 LiteLLM follows the [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html).
+
+We run:
+- Ruff for [formatting and linting checks](https://github.com/BerriAI/litellm/blob/e19bb55e3b4c6a858b6e364302ebbf6633a51de5/.circleci/config.yml#L320)
+- Mypy + Pyright for typing [1](https://github.com/BerriAI/litellm/blob/e19bb55e3b4c6a858b6e364302ebbf6633a51de5/.circleci/config.yml#L90), [2](https://github.com/BerriAI/litellm/blob/e19bb55e3b4c6a858b6e364302ebbf6633a51de5/.pre-commit-config.yaml#L4)
+- Black for [formatting](https://github.com/BerriAI/litellm/blob/e19bb55e3b4c6a858b6e364302ebbf6633a51de5/.circleci/config.yml#L79)
+- isort for [import sorting](https://github.com/BerriAI/litellm/blob/e19bb55e3b4c6a858b6e364302ebbf6633a51de5/.pre-commit-config.yaml#L10)
+
+
+If you have suggestions on how to improve the code quality feel free to open an issue or a PR.
diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.js
index c3c5bd31588..5920b8841b3 100644
--- a/docs/my-website/sidebars.js
+++ b/docs/my-website/sidebars.js
@@ -306,6 +306,7 @@ const sidebars = {
"migration_policy",
"contributing",
"proxy/pii_masking",
+ "extras/code_quality",
"rules",
"proxy_server",
{