-
Notifications
You must be signed in to change notification settings - Fork 135
Expand file tree
/
Copy pathpyproject.toml
More file actions
201 lines (176 loc) · 5.15 KB
/
Copy pathpyproject.toml
File metadata and controls
201 lines (176 loc) · 5.15 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
[build-system]
requires = ["hatchling>=1.18"]
build-backend = "hatchling.build"
[project]
name = "octop"
version = "0.9.24"
description = "Smarter self-hosted AI assistant for multiple users and agents, built on harness-agent"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.12"
authors = [{name = "octop contributors"}]
dependencies = [
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"pydantic>=2.6,<2.14",
"langchain-core>=1.4.8",
"click>=8.1",
"rich>=13.7",
"questionary>=2.0",
"apscheduler>=3.10,<4",
"argon2-cffi>=23.1",
"pyjwt>=2.8",
"orcakit-harness-agent[all]>=0.9.20",
"harness-memory>=0.9.5",
"harness-gateway>=0.9.2",
"cryptography>=41",
"scalar-fastapi>=1.0",
"edge-tts>=6.1",
"segno>=1.6",
"websockets>=13.0",
"acme>=5.6.0",
"josepy>=2.2.0",
"boto3>=1.40.61",
"harness-browser>=0.7.5",
"playwright>=1.40",
"psycopg[binary]>=3.2",
"langgraph-checkpoint-postgres>=2.0",
"mcp>=1.9,<2",
"pillow>=10.0",
"pypdf>=5.0",
"python-docx>=1.2.0",
"python-pptx>=1.0",
]
[project.optional-dependencies]
# PEP 621 extras — kept so `pip install -e ".[dev]"` keeps working for
# legacy / CI flows. `uv sync` reads `[dependency-groups].dev` below.
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=4.1",
"pytest-testmon>=2.0",
"httpx>=0.27",
"ruff>=0.4",
"mypy>=1.10",
"build>=1.0",
]
# Kept for backward compatibility; playwright is now a core dependency.
browser = [
"playwright>=1.40",
]
# Kept for backward compatibility; pillow is now a core dependency.
desktop = ["mss>=9.0", "pynput>=1.7"]
# Local ONNX / fastembed embedding models (Models admin local tab).
local-embedding = ["fastembed>=0.4", "huggingface_hub>=0.20"]
[dependency-groups]
# PEP 735 dev group — installed by default on `uv sync`. Mirrors the
# `[project.optional-dependencies].dev` list above.
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=4.1",
"pytest-testmon>=2.0",
"httpx>=0.27",
"ruff>=0.4",
"mypy>=1.10",
"build>=1.0",
]
[project.scripts]
octop = "octop.cli.main:cli"
[tool.hatch.build.targets.wheel]
packages = ["src/octop"]
[tool.hatch.build]
include = [
"src/octop/**/*.py",
"src/octop/**/*.json",
"src/octop/**/*.md",
"src/octop/**/*.sql",
"src/octop/**/*.sh",
"src/octop/**/*.png",
"src/octop/dashboard/**/*",
"src/octop/infra/agents/experts/library/**/*",
"src/octop/infra/agents/subagents/library/**/*",
"src/octop/infra/agents/subagents/divisions.json",
"src/octop/infra/desktop/scripts/**/*",
]
artifacts = [
"src/octop/dashboard/**/*",
]
[tool.ruff]
line-length = 100
target-version = "py312"
src = ["src", "tests"]
include = ["*.py", "*.pyi", "*.pyw", "*.ipynb", "**/pyproject.toml", "**/ruff.toml", "**/.ruff.toml"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "C4"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["B011"]
"src/octop/api/**" = ["B008"]
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true
files = ["src/octop"]
exclude = [
"src/octop/dashboard/",
"src/octop/infra/agents/experts/library/",
"src/octop/infra/agents/subagents/library/",
]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.auth"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.health"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.setup"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.users"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.agents"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.providers"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.chat"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.channels"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.cron"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.routers.admin"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.api.app"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "octop.infra.utils.posix_compat"
disable_error_code = ["attr-defined"]
[[tool.mypy.overrides]]
module = "octop.infra.utils.subprocess_io_win"
disable_error_code = ["attr-defined"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"live: tests that hit real LLM endpoints (skipped by default)",
"postgresql: tests that need a live PostgreSQL (set OCTOP_TEST_DATABASE_URL)",
]
# The project pins a starlette fork (1.3.1) whose TestClient prefers a
# private ``httpx2`` build that is not installable from PyPI. When ``httpx2``
# is absent it falls back to ``httpx`` and emits a non-actionable
# StarletteDeprecationWarning on every ``starlette.testclient`` import. The
# fallback is intentional for this environment, so silence the noise.
filterwarnings = [
"ignore::starlette.exceptions.StarletteDeprecationWarning",
]