-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
62 lines (56 loc) · 1.06 KB
/
ruff.toml
File metadata and controls
62 lines (56 loc) · 1.06 KB
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
target-version = "py312"
unsafe-fixes = true
[format]
preview = true
skip-magic-trailing-comma = true
[lint]
explicit-preview-rules = true
fixable = ["ALL"]
ignore = [
"ANN401",
"ASYNC109",
"C901",
"CPY",
"D",
"E501",
"PD",
"PERF203",
"PLC0415",
"PLE1205",
"PLR0904",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PT012",
"PT013",
"PYI041",
"S202",
"S310",
"S311",
"S602",
"S603",
"S607",
"W191",
"E111",
"E114",
"E117",
"COM812",
"COM819",
"ISC001",
"ISC002",
]
preview = true
select = ["ALL", "RUF022", "RUF029"]
[lint.extend-per-file-ignores]
"conftest.py" = ["S101", "SLF001"]
"src/tests/test_typing_funcs/no_future.py" = ["I002"]
"test_*.py" = ["S101", "SLF001"]
[lint.flake8-bugbear]
extend-immutable-calls = ["typing.cast"]
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.isort]
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false