-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
34 lines (30 loc) · 903 Bytes
/
ruff.toml
File metadata and controls
34 lines (30 loc) · 903 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
# ruff.toml — RAINGOD linter configuration
# https://docs.astral.sh/ruff/configuration/
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line length — handled by formatter
"B008", # do not perform function calls in default args (FastAPI pattern)
"UP007", # use X | Y syntax — breaks Python 3.9 compat in some places
"N818", # exception name should be named with Error suffix — LoRANotFoundError is fine
]
[tool.ruff.lint.isort]
known-first-party = ["backend"]
force-single-line = false
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"