-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
30 lines (27 loc) · 858 Bytes
/
ruff.toml
File metadata and controls
30 lines (27 loc) · 858 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
# Ruff configuration for Atlas-Backend
[lint]
select = [
"E", # Pycodestyle errors (PEP 8)
"F", # Pyflakes
"W", # Warnings
"C90", # McCabe complexity
"N", # pep8-naming
"B", # flake8-bugbear
"I", # isort
"UP", # pyupgrade
"D", # pydocstyle (docstring conventions)
"PL", # pylint
"RUF", # Ruff-specific rules
]
ignore = [
"D100", # Ignore missing docstring in public module
"D104", # Ignore missing docstring in public package
]
exclude = ["venv", "__pycache__", ".venv", ".git", ".ruff_cache", ".pytest_cache"]
# Enable autofix for supported rules
fixable = ["E", "F", "W", "I", "UP", "B", "N", "RUF"]
[lint.per-file-ignores]
"app/tests/*" = ["D", "PL"] # Ignore docstring/pylint in tests
# Set max line length (for compatible Ruff versions)
# [format]
# line-length = 100