Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (106 loc) · 3.52 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (106 loc) · 3.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "paude"
version = "0.20.5"
description = "Container wrapper for running AI coding agents in isolated, secure containers"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Ben Browning" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Build Tools",
]
dependencies = [
"click>=8.0.0",
"typer>=0.9.0",
"rich>=13.0.0",
"tomlkit>=0.13.0",
]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.3.0",
"mypy>=1.8.0",
"pre-commit>=3.6.0",
]
[project.scripts]
paude = "paude.cli:app"
[tool.hatch.build.targets.wheel]
packages = ["src/paude"]
[tool.hatch.build.targets.wheel.force-include]
"containers/paude/entrypoint.sh" = "paude/container/data/entrypoint.sh"
"containers/paude/entrypoint-session.sh" = "paude/container/data/entrypoint-session.sh"
"containers/paude/entrypoint-lib-credentials.sh" = "paude/container/data/entrypoint-lib-credentials.sh"
"containers/paude/entrypoint-lib-config.sh" = "paude/container/data/entrypoint-lib-config.sh"
"containers/paude/entrypoint-lib-install.sh" = "paude/container/data/entrypoint-lib-install.sh"
"containers/paude/entrypoint-lib-openclaw.sh" = "paude/container/data/entrypoint-lib-openclaw.sh"
"containers/paude/tmux.conf" = "paude/container/data/tmux.conf"
"containers/paude/patch-proxy-fetch.sh" = "paude/container/data/patch-proxy-fetch.sh"
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"S", # flake8-bandit
"A", # flake8-builtins
"C4", # flake8-comprehensions
"PT", # flake8-pytest-style
]
ignore = [
"S603", # subprocess calls - expected for podman wrapper
"S607", # partial executable path - expected for podman/git
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert in tests is expected
"S104", # "0.0.0.0" appears in port-forward test data, not a real bind
"S108", # hardcoded tmp paths are fine in tests
"E501", # long lines in test signatures are acceptable
]
"src/paude/config/dockerfile.py" = [
"E501", # long lines in Dockerfile shell commands
]
"src/paude/platform.py" = [
"A005", # intentionally named to match domain concept
]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
# Tests are type-checked too (they are the larger half of the codebase), but
# annotating ~1900 test signatures is not worth the churn -- the value is in
# catching wrong argument types and stale attribute names, which the rest of
# strict mode still enforces. See KNOWN_ISSUES.md TEST-003 to tighten this.
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_calls = false
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --ignore=tests/integration"
markers = [
"integration: integration tests requiring real infrastructure",
"podman: tests requiring real podman installation",
]