-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
35 lines (32 loc) · 841 Bytes
/
ruff.toml
File metadata and controls
35 lines (32 loc) · 841 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
target-version = "py310"
[format]
docstring-code-format = true
docstring-code-line-length = 10
[lint.pydocstyle]
convention = "pep257" # Accepts: "google", "numpy", or "pep257".
[lint]
exclude = []
select = [
"F", # Pyflakes
"E", # Pycode styles
"W", # Pycode styles
"N", # Pep8 naming
"I", # Isort
"UP", # Pyupgrade
"C4", # Flake8 comprehension
"ISC", # Flake8 implicit str concat
"B", # Flake8 bugbear
"PGH", # Pygrep hook
"RUF", # Ruff specific rules
]
ignore = [
"E501", # Line too long
"RET504", # Unnecessary assignment
"RET505", # Unnecessary else after return
"C901", # Too complex function
"B904", # raise-without-from-inside-except, enable when understand more
"PLR",
"ISC001",
]
[lint.pep8-naming]
classmethod-decorators = ["classmethod", "validator", "model_validator"]