-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpyproject.toml
More file actions
47 lines (43 loc) · 1005 Bytes
/
Copy pathpyproject.toml
File metadata and controls
47 lines (43 loc) · 1005 Bytes
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
[tool.ruff]
target-version = "py39"
line-length = 100
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"B",
"C4",
"UP",
]
ignore = [
"E501",
"B008",
"C901",
]
[tool.ruff.lint.per-file-ignores]
# Tests often import modules just to verify they're importable
"tests/*" = [
"E501", # Line too long - tests often have long assertions
"F401", # Unused imports - tests verify import success without using
"B006", # Mutable default arguments in test fixtures
"E402", # Module level import not at top - test setup
]
"tools/*" = [
"E402", # Module level import not at top
"E741", # Ambiguous variable name (l, O, I)
]
"data/*" = [
"E402", # Module level import not at top
]
"__init__.py" = [
"F401", # Unused imports - expected in __init__.py for re-exports
]
[tool.ruff.lint.isort]
known-first-party = ["sush"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"