-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (47 loc) · 1.6 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (47 loc) · 1.6 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
[project]
name = "raguide-workspace"
version = "0.1.0"
description = "raguide monorepo workspace root"
license = "GPL-3.0-only"
requires-python = ">=3.12,<3.13"
[tool.uv.workspace]
members = [
"apps/backend",
"packages/kb-ingestion",
"packages/eval",
]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
ignore = ["E501", "RUF001"] # E501: line-too-long handled by formatter; RUF001: fullwidth CJK punctuation is intentional in Chinese strings
[tool.ruff.lint.flake8-bugbear]
# FastAPI's dependency markers must be CALLED in the parameter default —
# that's how FastAPI builds the route dependant. They are immutable, so B008
# (function-call-in-default) is a false positive for them.
extend-immutable-calls = [
"fastapi.File",
"fastapi.Form",
"fastapi.Body",
"fastapi.Query",
"fastapi.Depends",
"fastapi.Path",
"fastapi.Header",
"fastapi.Cookie",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["apps/backend/tests", "packages/kb-ingestion/tests", "packages/eval/tests", "tests"]
pythonpath = ["."]
addopts = "--import-mode=importlib"
markers = [
"integration: requires docker compose (qdrant + postgres)",
"e2e: requires anthropic API key + ingested test data",
"slow: takes > 10s",
]
# Third-party libs without py.typed markers / shipped stubs.
# Standard mypy-blessed pattern (see https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports).
[[tool.mypy.overrides]]
module = ["ragas", "ragas.llms", "ragas.metrics", "datasets", "asyncpg"]
ignore_missing_imports = true