forked from strictdoc-project/strictdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
57 lines (52 loc) · 1003 Bytes
/
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
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 = [
"E501", # (line length violations).
"UP006", # Use `list` instead of `List` for type annotations
"UP007", # Use `X | Y` for type annotations
"UP035", # [*] Import from `collections.abc` instead: `Iterator`
"UP038", # [*] Use `X | Y` in `isinstance` call instead of `(X, Y)` (conflict with Pylint)
]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
[per-file-ignores]
# B008 Do not perform function calls in argument defaults.
# The call is performed only once at function definition time.
"strictdoc/server/routers/main_router.py" = ["B008"]