forked from Ontos-AI/knowhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (66 loc) · 1.45 KB
/
pyproject.toml
File metadata and controls
73 lines (66 loc) · 1.45 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[project]
name = "knowhere-api"
version = "0.1.0"
description = "Knowhere API publication workspace"
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
[dependency-groups]
lint = [
"ruff>=0.11.13",
]
typecheck = [
"pyright>=1.1.396",
]
[tool.uv]
package = false
[tool.uv.workspace]
members = [
"apps/api",
"apps/worker",
"packages/shared-python",
]
[tool.pyright]
typeCheckingMode = "basic"
venvPath = "."
venv = ".venv"
include = [
"apps/api/app",
"apps/api/main.py",
"apps/api/tests",
"apps/worker/app",
"apps/worker/worker.py",
"packages/shared-python/shared",
]
exclude = [
"**/__tests__",
"**/__pycache__",
"**/node_modules",
"**/.*",
"**/venv",
"apps/worker/tests",
"apps/worker/logs",
"packages/shared-python/build",
"packages/shared-python/dist",
"packages/shared-python/shared/tests",
]
executionEnvironments = [
{ root = "apps/api", extraPaths = ["packages/shared-python"] },
{ root = "apps/worker", extraPaths = ["apps/worker", "packages/shared-python"] },
{ root = "packages/shared-python" },
]
[tool.ruff]
line-length = 88
target-version = "py311"
src = [
"apps/api",
"apps/worker",
"packages/shared-python",
]
[tool.ruff.lint]
select = ["E", "F"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"]
"apps/worker/tests/**/*.py" = ["E402"]
"packages/shared-python/shared/tests/**/*.py" = ["E402"]