-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
270 lines (245 loc) · 7.38 KB
/
pyproject.toml
File metadata and controls
270 lines (245 loc) · 7.38 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "deepctl"
version = "0.2.1" # x-release-please-version
description = "Official Deepgram CLI for speech recognition and audio intelligence"
readme = "README.md"
license = "MIT"
authors = [{ name = "Deepgram", email = "devrel@deepgram.com" }]
maintainers = [{ name = "Deepgram", email = "devrel@deepgram.com" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
keywords = [
"deepgram",
"speech",
"recognition",
"transcription",
"audio",
"cli",
]
requires-python = ">=3.10"
dependencies = [
"click>=8.0.0",
"deepgram-sdk>=6.0.0rc2",
"deepctl-core>=0.1.10",
"deepctl-cmd-login>=0.1.10",
"deepctl-cmd-projects>=0.1.10",
"deepctl-cmd-transcribe>=0.1.10",
"deepctl-cmd-usage>=0.1.10",
"deepctl-cmd-mcp>=0.1.10",
"deepctl-cmd-api>=0.0.1",
"deepctl-cmd-debug>=0.1.10",
"deepctl-cmd-debug-browser>=0.1.10",
"deepctl-cmd-debug-network>=0.1.10",
"deepctl-cmd-debug-audio>=0.1.10",
"deepctl-cmd-debug-probe>=0.0.1",
"deepctl-cmd-ffprobe>=0.0.1",
"deepctl-cmd-update>=0.1.10",
"deepctl-cmd-plugin>=0.1.10",
"deepctl-cmd-skills>=0.0.1",
"deepctl-cmd-init>=0.0.1",
"deepctl-shared-utils>=0.1.10",
"pydantic>=2.0.0",
"rich>=13.0.0",
"httpx>=0.24.0",
"requests>=2.31,<3.0",
"pyjwt>=2.8.0",
"keyring>=24.0.0",
"pyyaml>=6.0.0",
"typer>=0.9.0",
"platformdirs>=3.0.0",
]
[project.optional-dependencies]
dev = [
# Testing
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"responses>=0.23.0",
# Code Quality
"ruff>=0.8.0",
"mypy>=1.0.0",
# Type Stubs
"types-PyYAML>=6.0.0",
"types-requests>=2.31.0",
# Development Tools
"pre-commit>=3.0.0",
# Publishing
"twine>=4.0.0",
"build>=0.10.0",
]
[project.urls]
Homepage = "https://github.com/deepgram/cli"
Documentation = "https://developers.deepgram.com/docs/cli"
Repository = "https://github.com/deepgram/cli"
"Bug Tracker" = "https://github.com/deepgram/cli/issues"
"Community" = "https://discord.gg/deepgram"
[project.scripts]
deepctl = "deepctl.main:main"
deepgram = "deepctl.main:main"
dg = "deepctl.main:main"
# Entry points are now provided by individual command packages
# [project.entry-points."deepctl.commands"]
# transcribe = "deepctl.commands.transcribe:TranscribeCommand"
# projects = "deepctl.commands.projects:ProjectsCommand"
# usage = "deepctl.commands.usage:UsageCommand"
# login = "deepctl.commands.login:LoginCommand"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
include = ["deepctl*"]
[tool.mypy]
python_version = "3.10"
strict = true
files = "src/,packages/*/src"
[[tool.mypy.overrides]]
module = "deepctl_cmd_mcp.*"
# MCP SDK type stubs are incomplete (decorators, transport parameters)
disable_error_code = ["call-arg", "no-untyped-call", "no-untyped-def", "untyped-decorator", "misc"]
[tool.pytest.ini_options]
testpaths = ["tests", "packages/*/tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# pythonpath is the correct option name (not python_path)
pythonpath = ["."]
# Add package directories to sys.path
addopts = "--strict-markers --import-mode=importlib"
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow running tests",
"requires_auth: Tests that require authentication",
"requires_network: Tests that require network access",
"benchmark: Benchmark tests",
]
[tool.uv]
# Optional: uv-specific configuration
# Uncomment and configure as needed
# Set the Python version constraint
# python = ">=3.10"
# Package index configuration
# index-url = "https://pypi.org/simple"
# extra-index-url = []
# Virtual environment configuration
# venv = ".venv"
# Development dependencies (can also be specified here)
# dev-dependencies = [
# "pytest>=7.0.0",
# "ruff>=0.8.0",
# "mypy>=1.0.0",
# ]
[tool.uv.sources]
# Workspace dependencies
deepctl-core = { workspace = true }
deepctl-cmd-api = { workspace = true }
deepctl-cmd-login = { workspace = true }
deepctl-cmd-projects = { workspace = true }
deepctl-cmd-transcribe = { workspace = true }
deepctl-cmd-usage = { workspace = true }
deepctl-cmd-mcp = { workspace = true }
deepctl-cmd-debug = { workspace = true }
deepctl-cmd-debug-browser = { workspace = true }
deepctl-cmd-debug-network = { workspace = true }
deepctl-cmd-debug-audio = { workspace = true }
deepctl-cmd-debug-probe = { workspace = true }
deepctl-cmd-ffprobe = { workspace = true }
deepctl-cmd-update = { workspace = true }
deepctl-cmd-plugin = { workspace = true }
deepctl-cmd-skills = { workspace = true }
deepctl-cmd-init = { workspace = true }
deepctl-shared-utils = { workspace = true }
deepctl-plugin-example = { workspace = true }
[tool.uv.workspace]
# Workspace configuration
members = ["packages/*"]
[dependency-groups]
testing = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"responses>=0.23.0",
"deepctl-plugin-example",
]
dev = [
{ include-group = "testing" },
# Code Quality
"ruff>=0.8.0",
"mypy>=1.0.0",
# Type Stubs
"types-pyyaml>=6.0.12.20250516",
"types-requests>=2.32.4.20250611",
# Development Tools
"pre-commit>=3.0.0",
# Publishing
"twine>=4.0.0",
"build>=0.10.0",
]
[tool.ruff]
# Exclude common directories
exclude = [
".git",
".mypy_cache",
".venv",
"__pycache__",
"dist",
"build",
"*.egg-info",
]
line-length = 88
# Target Python 3.10+
target-version = "py310"
[tool.ruff.lint]
# Enable multiple rule sets
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
# Ignore specific rules
ignore = [
"E501", # line too long (handled by formatter)
"B008", # function calls in argument defaults
"B904", # raise from exception
"SIM105", # try-except-pass
"RUF001", # ambiguous unicode characters (info symbol)
"ARG001", # unused function arguments (often needed for interfaces)
"E721", # type comparison (sometimes needed for Pydantic)
]
# Allow autofix for all enabled rules
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
# Ignore unused imports in __init__ files
"**/__init__.py" = ["F401"]
# Ignore imports in tests
"**/test_*.py" = ["F401", "ARG"]
# Ignore unused arguments in command handler methods
"**/command.py" = ["ARG002", "ARG005", "RUF012"]
"**/commands.py" = ["ARG002", "ARG005", "RUF012"]
"**/base_command.py" = ["ARG002"]
"**/strategies.py" = ["ARG002"]
# The root project (deepctl) is implicitly a member since it contains [project]