Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (64 loc) · 1.69 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (64 loc) · 1.69 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 = "af-stack-workspace"
version = "0.0.1"
description = "AF Stack monorepo workspace (TS + Py + Go)"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.11"
[tool.uv]
package = false # this is a workspace, not a publishable package
# Workspace-level dev tooling. Unlike `[project.optional-dependencies]` extras,
# a PEP 735 dependency-group is installed by default on `uv sync`, so CI's
# `uv sync --all-packages` puts pytest in the venv and `uv run pytest` resolves
# it (rather than falling back to a system/pyenv interpreter without af_stack).
[dependency-groups]
dev = [
"pytest >= 8.0",
"pytest-asyncio >= 0.24",
"respx >= 0.21",
]
[tool.uv.workspace]
members = [
"packages/sdk-py",
"apps/backend",
]
# `examples/*` will be added back to the workspace as individual examples
# scaffold their own pyproject.toml (Phase 13).
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = [
"**/build",
"**/dist",
"**/.venv",
"**/__pycache__",
"**/node_modules",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"ASYNC",
"S", # bandit (security)
"RUF", # ruff-specific
]
ignore = [
"E501", # line too long (formatter handles)
"S101", # assert (fine in tests)
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S"]
[tool.ruff.format]
quote-style = "double"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["packages/sdk-py/tests", "apps/backend/tests"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true