Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (91 loc) · 3.48 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (91 loc) · 3.48 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "decode"
version = "0.1.0"
description = "A terminal coding agent (agentic harness) built from scratch, step by step — the artifact of the building-a-coding-agent-from-scratch course."
readme = "README.md"
requires-python = ">=3.12"
license = { text = "Apache-2.0" }
authors = [
{ name = "Paul Iusztin", email = "p.e.iusztin@gmail.com" },
]
keywords = ["coding-agent", "llm", "agent", "tui", "pydantic-ai", "mcp"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
# Runtime deps only. Dev/test go in [dependency-groups]. Kept light on purpose —
# the course adds the heavier integrations at the step that needs them.
dependencies = [
"pydantic>=2.0,<3", # major bound only: the old <2.13 zenml cap died with kitaru 0.22 (ADR-0019)
"pydantic-settings>=2.4",
"python-dotenv>=1", # explicit .env-file parsing for pydantic-settings (env_file=".env")
"click>=8.1,<9", # major bound only: the old <8.3 zenml cap died with kitaru 0.22 (ADR-0019)
"rich>=13",
"prompt-toolkit>=3.0.53",
# minor-pinned to the window the kitaru-pydantic-ai adapter supports (its own cap is <2.47) — ADR-0022 §12
"pydantic-ai-slim[google,openai]>=2.46,<2.47",
"httpx>=0.28.1",
"markdownify>=1.2.3",
"pyyaml>=6.0.3",
"modal>=1.5.3",
"anyio>=4.14.2",
"logfire>=4.37.0",
"kitaru[cli,mcp,worker]>=0.27.0",
"kitaru-pydantic-ai>=0.3.0", # recording adapter: KitaruAgent wraps build_agent() (ADR-0019 §2)
]
[project.scripts]
decode = "decode.cli:cli"
[dependency-groups]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"pytest-mock>=3.12",
"ruff>=0.15.21",
"pre-commit>=4.6.0",
"ty>=0.0.73",
"opik>=2.2.9", # eval harness (ADR-0017); dev group — evals is not shipped in the wheel
# litellm is opik's transitive judge backend; pinned <1.78 because 1.92+ (what opik 2.x pulls)
# ships a Rust bridge that needs rustc >=1.86 to build from sdist. 1.77.x is pure-python wheels,
# so `uv sync` / `make ci` build everywhere without a Rust toolchain. Lift once opik 2.0 Test
# Suites are needed (ADR-0017 §6) and the build env has rustc >=1.86.
"litellm<1.98",
]
[tool.hatch.build.targets.wheel]
packages = ["src/decode"]
[tool.ruff]
target-version = "py312"
line-length = 100
extend-exclude = ["generated_client"]
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade (PEP 585/604)
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
ignore = [
"E501", # line length — the formatter owns this
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests/unit", "tests/integration"]
python_files = "test_*.py"
python_functions = "test_*"
addopts = "-ra --strict-markers --import-mode=importlib"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
# ``tests/support`` carries shared test-only helpers (e.g. the gated ``noop`` tool the
# permission/loop/e2e tests drive) that the shipped ``decode`` package must not contain. ``.`` puts the
# repo root on the path so the unit tests can import the operator scripts in ``scripts/`` (unpackaged).
pythonpath = ["src", "tests", "."]
filterwarnings = ["error"]