-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
42 lines (36 loc) · 1.12 KB
/
Copy pathruff.toml
File metadata and controls
42 lines (36 loc) · 1.12 KB
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
# Ruff configuration for code-challenge
# https://docs.astral.sh/ruff/configuration/
target-version = "py313"
line-length = 100
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults (FastAPI Depends)
"B904", # raise without from inside except
"ARG001", # unused function argument (common in FastAPI dependencies)
]
[lint.per-file-ignores]
"tests/*" = ["ARG", "S101"] # Allow assert in tests, unused args
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
[lint.isort]
known-first-party = ["src"]
force-single-line = false
combine-as-imports = true
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"