-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
40 lines (35 loc) · 886 Bytes
/
Copy pathruff.toml
File metadata and controls
40 lines (35 loc) · 886 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
# Ruff configuration file
target-version = "py310"
line-length = 88
extend-exclude = ["dashboard", ".venv", "server/migrations", "server/alembic"]
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = []
[lint.per-file-ignores]
"scripts/*" = ["E501", "I001", "C901"]
# conftest bootstraps sys.path for the repo-root `scripts/` package before imports.
"server/tests/conftest.py" = ["E402"]
[lint.flake8-bugbear]
extend-immutable-calls = [
"fastapi.Depends",
"fastapi.Query",
"fastapi.Path",
"fastapi.Body",
"fastapi.Header",
"fastapi.Cookie",
"fastapi.Form",
"fastapi.File",
"fastapi.Security",
]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"