Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (79 loc) · 2.11 KB
/
Copy pathpyproject.toml
File metadata and controls
89 lines (79 loc) · 2.11 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "avid"
version = "0.1.0"
description = "A lightweight push-to-talk dictation tool for macOS using whisper.cpp and cloud LLM formatting"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "William Cagas", email = "williamgabriel.cagas@gmail.com"}
]
keywords = ["dictation", "voice", "whisper", "macos", "speech-to-text"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: MacOS X",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Sound/Audio :: Speech",
]
dependencies = [
"sounddevice>=0.4.6",
"numpy>=1.24.0",
"pynput>=1.7.6",
"python-dotenv>=1.0.0",
"requests>=2.31.0",
"scipy>=1.11.0",
"pywebview>=4.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"ruff>=0.1.0",
]
menubar = [
"rumps>=0.4.0",
]
[project.scripts]
ai-dictation = "src.main:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort (import sorting)
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
"W293", # Blank line contains whitespace (acceptable in docstrings)
"PTH111", # os.path.expanduser is acceptable for string input
]
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --tb=short"