-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (47 loc) · 1.2 KB
/
Copy pathpyproject.toml
File metadata and controls
54 lines (47 loc) · 1.2 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
43
44
45
46
47
48
49
50
51
52
53
54
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"integration: marks tests that hit real external APIs (deselect with '-m \"not integration\"')",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.coverage.run]
source = ["search", "config", "middleware", "main"]
omit = ["tests/*", "__pycache__/*"]
[tool.coverage.report]
show_missing = true
fail_under = 70
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.",
"pass",
]
[tool.coverage.html]
directory = "htmlcov"
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line length (handled by formatter)
"B008", # do not perform function calls in argument defaults (needed for FastAPI/Pydantic Field)
]
[tool.ruff.lint.isort]
known-first-party = ["config", "middleware", "search"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"