-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
204 lines (181 loc) · 4.6 KB
/
pyproject.toml
File metadata and controls
204 lines (181 loc) · 4.6 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ash"
version = "0.1.0"
description = "Personal Assistant Agent"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
# CLI & Server
"typer>=0.12.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"rich>=13.0.0",
# Telegram
"aiogram>=3.15.0",
# LLM Providers
"anthropic>=0.40.0",
"openai>=1.50.0",
# Docker
"docker>=7.0.0",
# Graph storage
"numpy>=1.26.0",
# Configuration & Validation
"pydantic>=2.9.0",
"pydantic-settings>=2.5.0",
"tomlkit>=0.13.0", # For preserving TOML formatting when writing
# HTTP Client
"httpx>=0.27.0",
# Browser automation
"playwright>=1.54.0",
# Environment
"python-dotenv>=1.0.0",
# Auth
"filelock>=3.13.0",
# Caching
"cachetools>=5.3.0",
"croniter>=6.0.0",
# Workspace packages
"ash-rpc-protocol",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=5.0.0",
"ruff>=0.8.0",
"ty>=0.0.1a11",
]
sentry = [
"sentry-sdk[fastapi]>=2.0.0",
]
[project.scripts]
ash = "ash.cli:app"
evals = "ash.evals_cli:main"
gogcli = "ash.skills.bundled.gog.scripts.gogcli_bridge:main"
# ============== UV CONFIGURATION ==============
[tool.uv]
managed = true
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
ash-rpc-protocol = { workspace = true }
ash-sandbox-cli = { workspace = true }
[dependency-groups]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=5.0.0",
"ruff>=0.8.0",
"ty>=0.0.1a11",
"pyyaml>=6.0",
# For testing sandbox CLI (module only, entry point conflicts with main ash)
"ash-sandbox-cli",
]
sentry = [
"sentry-sdk[fastapi]>=2.0.0",
]
test = [
"time-machine>=3.2.0",
]
# ============== HATCH BUILD ==============
[tool.hatch.build.targets.wheel]
packages = ["src/ash"]
# ============== RUFF CONFIGURATION ==============
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
".pytest_cache",
".coverage",
"htmlcov",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"W", # pycodestyle warnings
"ASYNC", # flake8-async
"S", # flake8-bandit (security)
"PTH", # flake8-use-pathlib
]
ignore = [
"E501", # Line too long (ruff format handles this)
"S101", # Use of assert (fine in tests)
"S608", # SQL injection false positive on f-strings (used for prompts, not SQL)
]
fixable = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["ash"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**" = ["S101", "S105", "S106"]
"evals/**" = ["S101", "S105", "S106", "E402"]
"src/ash/cli/**" = ["S603", "S607"] # Allow subprocess calls in CLI
"src/ash/sandbox/**" = ["ASYNC109"] # Allow timeout parameters in sandbox
"src/ash/skills/installer.py" = ["S603", "S607"] # Allow subprocess calls for git operations
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# ============== PYTEST CONFIGURATION ==============
[tool.pytest.ini_options]
testpaths = ["tests", "evals"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--basetemp=.pytest_tmp",
]
markers = [
"slow: marks tests as slow",
"integration: marks tests as integration tests",
"eval: marks tests as evaluation tests (require real LLM)",
"network: marks tests that require external network access",
]
log_cli = true
log_cli_level = "WARNING"
log_cli_format = "%(levelname)s %(name)s: %(message)s"
# ============== COVERAGE ==============
[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*", "*/__main__.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@abstract",
]
precision = 2
show_missing = true
[tool.coverage.html]
directory = "htmlcov"