-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
44 lines (39 loc) · 1.08 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
# Ruff Configuration
line-length = 85
indent-width = 4
output-format = "grouped"
respect-gitignore = true
target-version = "py312"
[lint]
select = [
"E", # Error codes
"F", # Pyflakes
"W", # Warnings
"C", # Complexity
"N", # Naming conventions
"I", # Ignored errors
"E501", # Line too long
"N805", # First argument should be 'self'
]
fixable = ["ALL"] # All fixable errors will be automatically corrected
# Ignored Errors
ignore = [
"E731", # Do not assign a lambda expression, use a def instead
"N801", # Function name should be lowercase
"I001", # Import convention violation
"F631", # Assert should not be used with a literal
]
# Regular expression for dummy variables
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Excluded Directories and Files
exclude = [
".pytest_cache",
"poetry.lock",
"__pypackages__",
".git",
".env",
".ruff_cache"
]
[format]
exclude = ["__init__.py"] # Exclude __init__.py from formatting
skip-magic-trailing-comma = true # Skip the trailing comma for magic trailing commas