-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
73 lines (67 loc) · 1.16 KB
/
pyproject.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
[tool.ruff]
target-version = "py39"
line-length = 79
[tool.ruff.lint]
ignore = [
"ISC001",
"PLR2004",
"S101",
"TRY003",
# Some patterns contain special characters.
"PLR0911",
"RUF001",
]
select = [
"A001",
"B",
"C",
"E",
"EXE",
"F",
"G",
"I",
"INP",
"ISC",
"N",
"PGH",
"PIE",
"PL",
"PT",
"RET",
"RUF",
"S",
"SIM",
"T",
"TCH",
"TID25",
"TRY",
"UP",
"W",
# Consider enabling later.
# "ANN",
# "PTH",
]
[tool.ruff.lint.isort]
combine-as-imports = true
forced-separate = ["tests"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.pylint]
max-branches = 16
[tool.ruff.lint.per-file-ignores]
"tests/test_internal.py" = ["E501"]
"tests/test_quote.py" = ["E501"]
"tests/test_quote_html.py" = ["E501"]
"tests/test_unwrap.py" = ["E501"]
"tests/test_unwrap_html.py" = ["E501"]
[tool.mypy]
enable_error_code = "possibly-undefined"
files = "quotequail"
follow_imports = "normal"
ignore_missing_imports = true
no_implicit_optional = true
pretty = true
python_version = "3.10"
show_error_context = true
strict_equality = true
warn_unreachable = true