-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
28 lines (24 loc) · 881 Bytes
/
Copy pathpyproject.toml
File metadata and controls
28 lines (24 loc) · 881 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
[tool.ruff]
line-length = 100
target-version = "py311"
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM"]
ignore = [
"E501", # Line length — handled by formatter
"B008", # Do not perform function calls in argument defaults (Flask patterns)
"UP007", # Use X | Y for union types — requires Python 3.10+
"N818", # Exception name ... should be named with an Error suffix
]
[tool.ruff.isort]
known-first-party = ["app", "config", "lib"]
[tool.ruff.per-file-ignores]
"app/models/*.py" = ["N805"] # first argument of method should be self
"app/blueprints/**/__init__.py" = ["F401"] # unused imports are re-exports
[tool.black]
line-length = 100
target-version = ["py311"]
skip-string-normalization = false
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]