forked from fastapi-practices/fastapi_best_architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
42 lines (36 loc) · 730 Bytes
/
.ruff.toml
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
41
42
line-length = 120
target-version = "py310"
cache-dir = "./.ruff_cache"
[per-file-ignores]
"backend/app/api/v1/*.py" = ["TCH"]
"backend/app/models/*.py" = ["TCH003"]
"backend/app/**/__init__.py" = ["F401"]
"backend/app/tests/*.py" = ["E402"]
[lint]
select = [
"E",
"F",
"I",
"W505",
"PT018",
"SIM101",
"SIM114",
"PGH004",
"PLE1142",
"RUF100",
"F404",
"TCH",
"UP007"
]
[lint.flake8-pytest-style]
mark-parentheses = false
parametrize-names-type = "list"
parametrize-values-row-type = "list"
parametrize-values-type = "tuple"
[lint.flake8-unused-arguments]
ignore-variadic-names = true
[lint.isort]
lines-between-types = 1
order-by-type = true
[format]
quote-style = "single"