-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.ruff.toml
More file actions
40 lines (36 loc) · 862 Bytes
/
.ruff.toml
File metadata and controls
40 lines (36 loc) · 862 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
# Set PEP-8 Standard for maximum line length
line-length = 79
[lint.pydocstyle]
# Set the docstring convention to "google"
convention = "google"
[lint]
select = [
# Pyflakes errors (e.g., undefined names)
"F",
# Pycodestyle errors (e.g., indentation, spacing)
"E",
# Warnings (e.g., syntax warnings)
"W",
# Bugbear errors (e.g., common bugs and performance issues)
"B",
# Quotes issues
"Q",
# Pylint specific checks
"PL",
# Ruff-specific issues
"RUF",
]
ignore = [
# Wildcard imports (To ignore from file import * in utils/__init__.py)
"F403",
# Line too long (line exceeds maximum length in some places)
"E501",
# Too many arguments (Used in high-level functions in Tools)
"PLR0913",
# Too many local variables (Ignore magic value `2` for stereo, etc.)
"PLR2004",
]
exclude = [
"tests/*.py",
"scripts/*.py",
]