---
title: "程式碼品質"
url: "/docs/extras/code_quality"
canonical_url: "https://docs.litellm.ai/docs/extras/code_quality"
type: "docs"
last_updated: "2026-10-08"
related:
  - "/docs/projects/Railtracks"
  - "/docs/rules"
---
# 程式碼品質

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt


🚅 LiteLLM 遵循 [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html)。

我們執行：
- 使用 Ruff 進行格式化與 linting（`make format`，`make lint-ruff`）
- 使用 basedpyright 進行型別檢查（`make lint-basedpyright`）
- 循環匯入與匯入安全性檢查（`make check-circular-imports`，`make check-import-safety`）

請從 `litellm` 儲存庫的根目錄執行 `make lint`，以執行與 CI 相同的檢查。

如果您對如何提升程式碼品質有任何建議，歡迎開啟 issue 或 PR。

## Related pages

- [Railtracks](https://docs.litellm.ai/docs/projects/Railtracks.md)
- [規則](https://docs.litellm.ai/docs/rules.md)
