Spaces:
Configuration error
Configuration error
File size: 1,885 Bytes
e111d94 1e53571 e111d94 313814b e111d94 5aa421e 313814b 8ad4ca5 94c7543 8ad4ca5 cf23b08 94c7543 8ad4ca5 dc4f25f 8ad4ca5 dc4f25f 8ad4ca5 dc4f25f 8ad4ca5 dc4f25f 8ad4ca5 dc4f25f 8ad4ca5 dc4f25f 8ad4ca5 d0feed8 cf23b08 d0feed8 7003957 |
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 |
[project]
name = "faster-whisper-server"
requires-python = ">=3.12,<3.13"
dependencies = [
"pydantic",
"fastapi",
"uvicorn",
"python-multipart",
"soundfile",
"pydantic-settings",
"numpy<2.0.0",
"faster-whisper==1.0.3",
"huggingface-hub",
"httpx-sse",
"httpx",
"gradio",
]
[project.optional-dependencies]
dev = ["ruff", "pytest", "pytest-xdist", "openai"]
other = ["youtube-dl@git+https://github.com/ytdl-org/youtube-dl.git", "aider-chat"]
# https://docs.astral.sh/ruff/configuration/
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"FIX",
"TD", # disable todo warnings
"ERA", # allow commented out code
"PTH",
"ANN003", # missing kwargs
"ANN101", # missing self type
"ANN102", # missing cls
"B006",
"B008",
"COM812", # trailing comma
"D10", # disabled required docstrings
"D401",
"EM102",
"FBT001",
"FBT002",
"PLR0913",
"PLR2004", # magic
"RET504",
"RET505",
"RET508",
"S101", # allow assert
"S104",
"S603", # subprocess untrusted input
"SIM102",
"T201", # print
"TRY003",
"W505",
"ISC001" # recommended to disable for formatting
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.pyright]
# typeCheckingMode = "strict"
pythonVersion = "3.12"
pythonPlatform = "Linux"
# https://github.com/RobertCraigie/pyright-python/tree/804dafbe7ab1b9c8766c2b4755fb29db37959ab7?tab=readme-ov-file#pre-commit
venvPath = "."
venv = ".venv"
|