-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
23 lines (20 loc) · 837 Bytes
/
Copy pathpyproject.toml
File metadata and controls
23 lines (20 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[tool.ruff]
# Reflects the code that already exists rather than imposing a new width on it.
# Nothing here is under 120 by accident; tighten this if the style ever changes.
line-length = 145
target-version = "py311"
extend-exclude = ["vendor", "build", "dist", ".packaging-venv", "runtime-tools"]
[tool.ruff.lint]
# Deliberately modest: correctness and import hygiene, not style opinions.
# E/W pycodestyle F pyflakes
# I import order UP pyupgrade
# B bugbear
select = ["E", "W", "F", "I", "UP", "B"]
ignore = [
# FastAPI's whole dependency system is function calls in argument defaults:
# `file: UploadFile = File(...)`. This rule is a false positive here.
"B008",
]
[tool.ruff.lint.per-file-ignores]
# Tests re-import and shadow deliberately while arranging fixtures.
"backend/tests/*" = ["E501"]