-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (81 loc) · 4.52 KB
/
Copy pathpyproject.toml
File metadata and controls
102 lines (81 loc) · 4.52 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
name = "kaits"
version = "0.3.0"
description = "AI agent orchestrator — the RPG for your AI agent team"
requires-python = ">=3.13"
dependencies = [
"reflex>=0.8.28",
"anthropic>=0.52.0",
"pyyaml>=6.0",
"python-dotenv>=1.2.2",
"fastapi>=0.115",
]
[dependency-groups]
dev = [
"ruff>=0.11.0",
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-playwright>=0.5",
"playwright>=1.58.0",
"httpx>=0.28",
]
# =============================================================================
# Poe the Poet — task runner
# =============================================================================
# Usage: poe <task> (when poethepoet is installed globally via uv tool)
# or: uv run poe <task> (if only available as a project dependency)
# =============================================================================
[tool.poe.tasks]
# ── App ──────────────────────────────────────────────────────────────────────
run.cmd = "uv run reflex run --env dev --loglevel info"
run.help = "Start the Reflex dev server (frontend :3000, backend :8000)"
# ── Quality ──────────────────────────────────────────────────────────────────
check.sequence = [
{ cmd = "uv lock --locked" },
{ cmd = "uv run ruff check ." },
{ cmd = "uv run ruff format --check ." },
]
check.help = "Lint and format check (ruff)"
test.cmd = "uv run python -m pytest -m 'not e2e'"
test.help = "Run unit tests (excludes E2E)"
test-ui.cmd = "uv run python -m pytest -m e2e"
test-ui.help = "Run E2E browser tests (starts Reflex server)"
test-all.cmd = "uv run python -m pytest"
test-all.help = "Run all tests (unit + E2E)"
# ── Build ────────────────────────────────────────────────────────────────────
build.cmd = "uvx --from build pyproject-build --installer uv"
build.help = "Build distribution packages (sdist + wheel)"
clean-build.cmd = "uv run python -c \"import shutil; import os; shutil.rmtree('dist') if os.path.exists('dist') else None\""
clean-build.help = "Remove the dist/ directory"
# ── Docs (MkDocs) ───────────────────────────────────────────────────────────
docs-serve.cmd = "mkdocs serve -a 0.0.0.0:8800"
docs-serve.help = "Serve documentation locally with live reload (:8800)"
docs-build.cmd = "mkdocs build -d site"
docs-build.help = "Build static documentation site into site/"
docs-clean.cmd = "uv run python -c \"import shutil; import os; shutil.rmtree('site') if os.path.exists('site') else None\""
docs-clean.help = "Remove the site/ directory"
docs-deploy.sequence = ["docs-build"]
docs-deploy.help = "Build and deploy documentation (deploy target TBD)"
# ── Dependency management ────────────────────────────────────────────────────
bump.cmd = "uv lock --upgrade"
bump.help = "Upgrade all locked dependencies to latest compatible versions"
pipfreeze.shell = "uv export --no-hashes --format requirements-txt > requirements.txt"
pipfreeze.help = "Export pinned dependencies to requirements.txt"
# =============================================================================
# Ruff
# =============================================================================
[tool.ruff]
target-version = "py313"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.lint.per-file-ignores]
# Reflex state classes require mutable defaults for reactive vars
"kaits/state/*.py" = ["RUF012"]
# =============================================================================
# Pytest
# =============================================================================
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = ["e2e: end-to-end browser tests (deselect with -m 'not e2e')"]