110 lines
2.6 KiB
TOML
110 lines
2.6 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "voice-dictation"
|
|
version = "0.1.0"
|
|
description = "Desktop голосовая диктовка через Whisper API"
|
|
requires-python = ">=3.11"
|
|
readme = "README.md"
|
|
license = { text = "MIT" }
|
|
|
|
dependencies = [
|
|
"httpx>=0.27.0",
|
|
"pynput>=1.7.7",
|
|
"pyperclip>=1.9.0",
|
|
"python-dotenv>=1.0.0",
|
|
"psutil>=5.9.0",
|
|
"pystray>=0.19.5",
|
|
"Pillow>=10.0.0",
|
|
"customtkinter>=5.2.0",
|
|
"sounddevice>=0.4.6",
|
|
"openai>=1.40.0",
|
|
"winotify>=1.1.0; sys_platform == 'win32'",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"ruff>=0.4.0",
|
|
"mypy>=1.10.0",
|
|
"pytest>=8.2.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"pre-commit>=3.7.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
voice-dictation = "voice_dictation.__main__:main"
|
|
voice-dictation-headless = "voice_dictation.cli.headless:main"
|
|
voice-dictation-tray = "voice_dictation.__main__:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.setuptools.package-dir]
|
|
"" = "src"
|
|
|
|
[tool.ruff]
|
|
target-version = "py311"
|
|
line-length = 100
|
|
src = ["src", "tests"]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", "W", # pycodestyle
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"N", # pep8-naming
|
|
"UP", # pyupgrade
|
|
"B", # flake8-bugbear
|
|
"C4", # flake8-comprehensions
|
|
"SIM", # flake8-simplify
|
|
"ANN", # flake8-annotations
|
|
"RUF", # ruff-specific
|
|
]
|
|
ignore = [
|
|
"ANN401", # Any допустим в отдельных местах
|
|
"RUF001", # кириллица в строках — намеренно
|
|
"RUF002", # кириллица в docstrings — намеренно
|
|
"RUF003", # кириллица в комментариях — намеренно
|
|
"RUF100", # unused noqa — управляем вручную
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/**" = ["ANN"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = true
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
disallow_any_generics = true
|
|
disallow_subclassing_any = true
|
|
disallow_untyped_calls = true
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
check_untyped_defs = true
|
|
no_implicit_reexport = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
mypy_path = "src"
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = [
|
|
"pynput.*",
|
|
"pyperclip.*",
|
|
"psutil.*",
|
|
"sounddevice.*",
|
|
"pystray.*",
|
|
"customtkinter.*",
|
|
"AppKit.*",
|
|
"ApplicationServices.*",
|
|
"Quartz.*",
|
|
"Foundation.*",
|
|
"PyObjCTools.*",
|
|
]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|