-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (126 loc) · 3.68 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (126 loc) · 3.68 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
[project]
name = "clearscript"
version = "0.0.21"
description = "Local-first ASR transcript editor with a compounding terminology library. Bring your own model."
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "clearscript contributors" }]
requires-python = ">=3.11"
keywords = [
"transcript",
"asr",
"speech-to-text",
"local-first",
"interview",
"podcast",
"llm",
"claude",
"openai",
"ollama",
]
classifiers = [
"Development Status :: 3 - Alpha",
"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 :: Text Processing :: Linguistic",
]
dependencies = [
"anthropic>=0.40.0",
"openai>=1.50.0",
"google-generativeai>=0.8.0",
"httpx>=0.27.0",
"typer>=0.12.0",
"rich>=13.7.0",
"platformdirs>=4.2.0",
"sqlalchemy>=2.0.30",
"python-docx>=1.1.0",
"pydantic>=2.7.0",
"tomli>=2.0.1; python_version<'3.11'",
"tomli-w>=1.0.0",
"keyring>=24.0.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"websockets>=12.0",
"python-multipart>=0.0.9",
"beautifulsoup4>=4.12.0",
"lxml>=5.2.0",
"srt>=3.5.3",
"webvtt-py>=0.5.1",
]
[project.optional-dependencies]
dev = [
"pytest>=8.2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"ruff>=0.6.0",
"mypy>=1.10.0",
]
embeddings = [
"sentence-transformers>=3.0.0",
"faiss-cpu>=1.8.0",
"numpy>=1.26.0",
]
postgres = [
"psycopg[binary]>=3.2.0",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.25.0",
]
[project.scripts]
clearscript = "clearscript.cli:app"
cs = "clearscript.cli:app"
[project.urls]
Homepage = "https://github.com/Chen17-sq/clearscript"
Repository = "https://github.com/Chen17-sq/clearscript"
Issues = "https://github.com/Chen17-sq/clearscript/issues"
Changelog = "https://github.com/Chen17-sq/clearscript/blob/main/CHANGELOG.md"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# hatchling packages EVERY file under src/clearscript by default — prompts/*.md,
# library/schema.sql, web/index.html are all picked up as package data. Do NOT
# re-add a force-include section for them: hatchling ≥1.30 hard-errors on
# duplicate archive paths, which made `uv build` (and therefore
# `uv tool install git+...`) fail outright.
[tool.hatch.build.targets.wheel]
packages = ["src/clearscript"]
[dependency-groups]
dev = [
"pytest>=8.2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"ruff>=0.6.0",
"mypy>=1.10.0",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "RUF"]
# RUF001/002/003: ambiguous Unicode chars are intentional — clearscript
# processes Chinese full-width punctuation as a feature, not a bug.
# B008: typer uses default-as-call pattern (typer.Argument, typer.Option).
ignore = ["E501", "RUF001", "RUF002", "RUF003", "B008"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["B011"]
# python-docx uses Word XML namespace conventions (rPr, pPr, rFonts, etc.)
# that violate Python casing — accept the existing names rather than fight them.
"src/clearscript/export/docx.py" = ["N806"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-ra --strict-markers"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true