-
Notifications
You must be signed in to change notification settings - Fork 18
/
ruff.toml
63 lines (57 loc) · 1.01 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
[lint]
select = [
"A",
"ARG",
"B",
# "BLE",
# "C",
# "C4",
# "C90" mccabe
# "COM",
# "D",
# "DTZ",
# "E",
"EXE",
"ERA",
"F",
# "FBT",
"G",
"I",
"ISC",
"ICN",
# "N",
"PGH",
# "PIE",
# "PL", # Pylint
# "PT", # pytest
# "PTH",
"Q", # Quotes
# "RET",
# "RUF",
# "S",
# "SIM",
# "SLF",
"T20",
# "TCH",
# "TRY",
# "UP",
"W",
"YTT",
]
ignore = [
# Never enforce `E501` (line length violations).
"E501",
# ICN001 `xml.etree.ElementTree` should be imported as `ET`
"ICN001",
# A warning by ruff format:
# warning: The following rules may cause conflicts when used with the formatter: `ISC001`.
"ISC001",
]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
[lint.per-file-ignores]
"strictdoc/server/routers/main_router.py" = ["B008"]
"tests/integration/check_exists.py" = ["T201"]
"tests/integration/diff.py" = ["T201"]
"tests/integration/expect_exit.py" = ["T201"]
"tests/integration/html_markup_validator.py" = ["T201"]