Repository navigation
Expand file tree
/
Copy pathruff.toml
More file actions
66 lines (61 loc) · 1.5 KB
/
Copy pathruff.toml
File metadata and controls
66 lines (61 loc) · 1.5 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
63
64
65
66
line-length = 88
target-version = "py312"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"docs",
".drawio",
]
[lint]
# Core rules for code quality
select = [
"E", # pycodestyle errors (critical)
"F", # pyflakes (critical)
"B", # flake8-bugbear (bugs/design problems)
"UP", # pyupgrade (Python upgrades)
"RUF", # Ruff-specific rules
]
# Ignore rules that are too strict or not relevant
ignore = [
"E501", # Line too long (handled by formatter)
"B006", # mutable argument default
"B008", # Do not perform function calls in argument defaults
"B905", # Unnecessary comparison
"RUF001", # String contains ambiguous unicode character
"RUF002", # Docstring contains ambiguous unicode character
"RUF003", # Comment contains ambiguous unicode character
"F841", # Local variable is assigned to but never used
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[lint.isort]
combine-as-imports = true
split-on-trailing-comma = true