-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
53 lines (41 loc) · 1.32 KB
/
pyproject.toml
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]
requires-python = ">=3.12"
[tool.pdm.dev-dependencies]
dev = [
"-e pkg-core @ file:///${PROJECT_ROOT}/packages/pkg-core",
"-e pkg-cli @ file:///${PROJECT_ROOT}/packages/pkg-cli",
"-e pkg-server @ file:///${PROJECT_ROOT}/packages/pkg-server",
"ruff>=0.4.3",
"mypy>=1.10.0",
"types-protobuf>=5.26.0.20240422",
"uvicorn>=0.29.0",
"django-stubs[compatible-mypy]>=5.0.0",
"ipython>=8.24.0",
"pytest>=8.2.2",
]
[tool.pdm.scripts]
ruff = "ruff check"
mypy_core = "mypy packages/pkg-core"
mypy_api = "mypy packages/pkg-server"
mypy = {composite = ["mypy_core", "mypy_api"]}
lint = {composite = ["mypy", "ruff"]}
test = "pytest packages/pkg-core/tests"
setup = "python packages/pkg-server/manage.py migrate rag"
server = "uvicorn agent.asgi:application --host 0.0.0.0 --reload {args}"
manage.cmd = "python packages/pkg-server/manage.py {args}"
manage.env_file = ".env.test"
query = {call = "cli.endpoint:cli"}
[tool.ruff]
src = ["packages/pkg-core", "packages/pkg-cli", "packages/pkg-server"]
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "agent.settings"
[tool.ruff.lint]
fixable = ["ALL"]
ignore = ["F401"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:.*custom tp_new.*in Python 3.14.*:DeprecationWarning",
]