-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (119 loc) · 3.25 KB
/
pyproject.toml
File metadata and controls
134 lines (119 loc) · 3.25 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
[project]
name = "shh-cli"
version = "0.1.1"
description = "Voice transcription CLI powered by OpenAI Whisper"
requires-python = ">=3.11"
authors = [
{ name = "Marius Pruvot", email = "marius.pruvot@example.com" }
]
readme = "README.md"
license = { text = "MIT" }
keywords = ["whisper", "transcription", "voice", "openai", "cli", "speech-to-text"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"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 :: Multimedia :: Sound/Audio :: Speech",
"Topic :: Utilities",
]
dependencies = [
# CLI & UI
"rich>=13.0.0",
# HTTP & API
"httpx>=0.27.0",
"openai>=1.0.0",
# LLM & Validation
"pydantic-ai>=0.0.13",
"pydantic>=2.0",
"pydantic-settings>=2.0",
# Audio
"sounddevice>=0.4.6",
"scipy>=1.11.0",
"numpy>=1.24.0",
# Utilities
"pyperclip>=1.8.2",
"python-dotenv>=1.0.0",
"platformdirs>=4.0.0",
"typer>=0.20.0",
"ipython>=9.8.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-mock>=3.12.0",
"pytest-cov>=4.1.0",
"mypy>=1.8.0",
"ruff>=0.2.0",
"poethepoet>=0.24.0",
"scipy-stubs>=1.11.0",
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.24.0",
]
[project.urls]
Homepage = "https://mariuspruvot.github.io/shh/"
Repository = "https://github.com/mariuspruvot/shh"
Documentation = "https://mariuspruvot.github.io/shh/"
Issues = "https://github.com/mariuspruvot/shh/issues"
[project.scripts]
shh = "shh.cli.app:main"
[build-system]
requires = ["uv_build>=0.9.17,<0.10.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-root = ""
module-name = "shh"
[tool.mypy]
strict = true
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "ANN", "ASYNC", "S", "B", "A", "C4", "RET", "SIM"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101"] # Allow asserts in tests
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --strict-markers"
markers = [
"e2e: End-to-end tests with real APIs (deselect with '-m \"not e2e\"')",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.poe.tasks]
# Testing
test = "pytest"
test-cov = "pytest --cov=shh --cov-report=html --cov-report=term --cov-report=xml"
test-unit = "pytest tests/unit"
test-integration = "pytest tests/integration"
test-no-e2e = "pytest -m 'not e2e'"
# Code quality
lint = "ruff check ."
lint-fix = "ruff check . --fix"
type = "mypy --strict shh/"
format = "ruff format ."
# Combined checks
check = ["type", "lint", "test"]
fix = ["lint-fix", "format"]
# Development
clean = "rm -rf .pytest_cache .mypy_cache .ruff_cache htmlcov .coverage"
[dependency-groups]
dev = [
"scipy-stubs>=1.16.3.3",
]