-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathruff.toml
More file actions
36 lines (32 loc) · 880 Bytes
/
Copy pathruff.toml
File metadata and controls
36 lines (32 loc) · 880 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
extend-exclude = [
"playground",
"playground.py",
"migrations/env.py",
"migrations/versions/*.py",
"tests/conftest.py",
".copier",
"tmp",
]
force-exclude = true
[lint]
extend-select = ["I", "ISC", "UP", "C4", "B"]
[lint.per-file-ignores]
# B008: FastAPI uses function calls (e.g. Depends(), Query()) as default argument values, which is intentional
"app/routes/**" = ["B008"]
# E731: Factory fields use lambda assignments to defer execution per polyfactory's convention
"app/factories/**" = ["E731"]
[lint.isort]
section-order = [
# https://docs.astral.sh/ruff/settings/#lint_isort_section-order
"future",
"standard-library",
"third-party",
"first-party",
# custom ordering
"orm",
"tests",
"local-folder",
]
[lint.isort.sections]
orm = ["sqlmodel", "activemodel", "sqlalchemy", "app.models.*"]
tests = ["tests"]