87 Star 203 Fork 108

中启开源 / clup

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pyproject.toml 947 Bytes
一键复制 编辑 原始数据 按行查看 历史
[tool.ruff]
line-length = 200
fix = true
[tool.ruff.format]
#quote-style = "single"
indent-style = "space"
# 启用 docstring 代码片段格式化
docstring-code-format = true
skip-magic-trailing-comma = false
[tool.ruff.lint]
# 1. Enable flake8-bugbear (`B`) rules, in addition to the defaults.
select = ["E4", "E7", "E9", "F", "B", "SIM", "I", "PL"]
# 2. Avoid enforcing line-length violations (`E501`)
ignore = ["E501", "SIM102", "SIM108", "SIM113", "SIM300", "PLC1901", "PLR0904", "PLR0911", "PLR0912", "PLR0913", "PLR0914", "PLR0915", "PLR0916", "PLR0917", "PLR1702", "PLR2004", "PLR6301", "PLW0602", "PLW0603", "PLW2901",]
# 3. Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
extend-select = ["W", "E"]
preview = true
# 4. Ignore `E402` (import violations) in all `__init__.py` files, and in select subdirectories.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs,tools}/*" = ["E402"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/csudata/clup.git
git@gitee.com:csudata/clup.git
csudata
clup
clup
master

搜索帮助