-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.ruff.toml
77 lines (70 loc) · 1.21 KB
/
.ruff.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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