1 Star 0 Fork 34

wanggenyan/httpfpt

forked from Wu Clan/httpfpt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.ruff.toml 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
Wu Clan 提交于 2024-03-09 18:35 +08:00 . 升级ruff并设定最低版本>=0.3.0 (#150)
line-length = 120
cache-dir = "./httpfpt/.ruff_cache"
unsafe-fixes = true
target-version = "py310" # 代码风格版本
[lint]
select = [
"E",
"F",
"I",
"W",
"N",
"FA",
"TCH",
"T20",
"FURB",
# UP
"UP004",
"UP006",
"UP007",
"UP008",
"UP034",
"UP037",
"UP039",
# ANN
"ANN001",
"ANN201",
"ANN202",
"ANN204",
"ANN205",
"ANN206",
# PIE
"PIE810",
# PT
"PT018",
# SIM
"SIM101",
"SIM114",
# PGH
"PGH004",
# PRF
"PERF101",
"PERF102",
# RUF
"RUF100",
"RUF013",
"RUF027",
]
preview = true
ignore-init-module-imports = true
ignore = ["FURB101"]
[lint.flake8-pytest-style]
mark-parentheses = false
parametrize-names-type = "list"
parametrize-values-row-type = "list"
parametrize-values-type = "tuple"
[lint.flake8-unused-arguments]
ignore-variadic-names = true
[lint.isort]
lines-between-types = 1
order-by-type = true
[lint.flake8-annotations]
mypy-init-return = true
[lint.per-file-ignores]
"httpfpt/testcases/test_*.py" = ["ANN"]
"httpfpt/conftest.py" = ["ANN"]
"httpfpt/cli.py" = ["E402"]
"httpfpt/run.py" = ["E402"]
[format]
quote-style = "single"
docstring-code-format = true
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wanggenyan/httpfpt.git
git@gitee.com:wanggenyan/httpfpt.git
wanggenyan
httpfpt
httpfpt
master

搜索帮助