加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.ruff.toml 524 Bytes
一键复制 编辑 原始数据 按行查看 历史
wu-clan 提交于 2024-03-23 18:36 . 重构后端架构(覆盖推送)
line-length = 120
unsafe-fixes = true
cache-dir = ".ruff_cache"
target-version = "py310"
[lint]
select = [
"E",
"F",
"W505",
"SIM101",
"SIM114",
"PGH004",
"PLE1142",
"RUF100",
"I002",
"F404",
"TCH",
"UP007"
]
preview = true
[lint.isort]
lines-between-types = 1
order-by-type = true
[lint.per-file-ignores]
"**/api/v1/*.py" = ["TCH"]
"**/model/*.py" = ["TCH003"]
"**/model/__init__.py" = ["F401"]
[format]
preview = true
quote-style = "single"
docstring-code-format = true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化