-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (69 loc) · 2.41 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (69 loc) · 2.41 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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "python-agent-harness"
version = "1.2.0"
description = "Python agent execution harness: agent loop, tools, plan/build modes, sessions"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"rich>=13.0",
"httpx>=0.27",
"prompt_toolkit>=3.0",
]
[project.optional-dependencies]
# MCP (Model Context Protocol) client support: exposes MCP server tools to
# the agent as namespaced mcp__<server>__<tool> tools. Install with:
# pip install -e ".[mcp]"
# The SDK is NOT a core dependency: the harness works without it, and the
# mcp/ modules degrade gracefully (MCPUnavailableError) when it is absent.
mcp = [
"mcp>=2.0,<3",
]
# Tooling used by CI (lint + type check + wheel build + coverage + audit).
# Install with: pip install -e ".[dev]"
# The mcp extra is included so CI's type-check/lint jobs can resolve the
# optional SDK imports in python_agent_harness/mcp/.
dev = [
"ruff>=0.6",
"pyright>=1.1.380",
"build>=1.2",
"coverage[toml]>=7.0",
"pip-audit>=2.7",
"mcp>=2.0,<3",
]
[project.scripts]
python-agent-harness = "python_agent_harness.cli:main"
[tool.setuptools.packages.find]
include = ["python_agent_harness*"]
[tool.setuptools.package-data]
python_agent_harness = ["prompts/*.md", "prompts/commands/*.md"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# Core pyflakes (F) + pycodestyle error (E), plus import sorting (I),
# bugbears (B), pyupgrade (UP) and simplify (SIM). The tree is clean
# under this set (CI blocks on it).
select = ["E", "F", "I", "B", "UP", "SIM"]
# E501 (line-too-long) is left to the formatter.
ignore = ["E501"]
[tool.pyright]
include = ["python_agent_harness"]
pythonVersion = "3.11"
# "basic" surfaces the real Optional-access issues without the full strict
# firehose. The tree is clean under this mode and the CI type-check job
# blocks on it.
typeCheckingMode = "basic"
[tool.coverage.run]
source = ["python_agent_harness"]
branch = true
# The console/TUI entry points aren't exercised by unittest; omit the ones
# that would otherwise drag the number down without adding signal.
omit = ["python_agent_harness/__main__.py"]
[tool.coverage.report]
show_missing = true
# Current line + branch coverage is ~98%. Gate at 90 to leave headroom for
# small changes while still catching real regressions. Raise as coverage grows.
fail_under = 90