-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (100 loc) · 3.46 KB
/
pyproject.toml
File metadata and controls
110 lines (100 loc) · 3.46 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "paude"
version = "0.20.0a2"
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 = [
"typer>=0.9.0",
"rich>=13.0.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"
"containers/paude/patch-gemini-otel-proxy.sh" = "paude/container/data/patch-gemini-otel-proxy.sh"
"containers/paude/patch-openclaw-otel-proxy.sh" = "paude/container/data/patch-openclaw-otel-proxy.sh"
"containers/paude/patch-openclaw-otel-logs.sh" = "paude/container/data/patch-openclaw-otel-logs.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
"S310", # URL open audit - expected for feature downloader
"S202", # tarfile extractall - expected for feature extraction
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert in tests is expected
"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
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --ignore=tests/integration"
markers = [
"integration: integration tests requiring real infrastructure",
"podman: tests requiring real podman installation",
"kubernetes: tests requiring kubernetes cluster (Kind or OpenShift)",
]