[build-system] requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] name = "sample-app" version = "0.1.0" description = "Add your description here" readme = "README.md" requires-python = ">=3.11,<3.12" dependencies = [ "python-dotenv>=0.9.9", "pydantic>=2.0.0", "gradio>=4.44.1", "gtts>=2.5.4", "openai>=1.106.1", "openai-whisper", "torch==2.1.2", "torchaudio==2.1.2", "soundfile>=0.13.1", "pyannote-audio==3.1.1", "numpy<2.0", "faster-whisper>=1.2.1", "ruff>=0.14.10", "pathlib>=1.0.1", "scikit-learn>=1.8.0", ] [project.optional-dependencies] dev = [ "pre-commit>=3.7.0", "ruff>=0.6.0", ] [tool.setuptools.packages.find] include = ["tools*", "config*", "models*", "utils*"] exclude = ["sample-meetings*", "scripts*"] [tool.uv.sources] openai-whisper = { git = "https://github.com/openai/whisper.git" } [tool.ruff] # Exclude a variety of commonly ignored directories. exclude = [ ".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".mypy_cache", ".nox", ".pants.d", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", "__pypackages__", "_build", "buck-out", "build", "dist", "node_modules", "venv", "sample-meetings", ] # Same as Black. line-length = 88 indent-width = 4 # Assume Python 3.12 target-version = "py312" [tool.ruff.lint] # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or # McCabe complexity (`C901`) by default. select = [ "E4", # pycodestyle errors "E7", # pycodestyle errors "E9", # pycodestyle errors "F", # pyflakes "UP", # pyupgrade "B", # flake8-bugbear "C4", # flake8-comprehensions "SIM", # flake8-simplify "I", # isort ] ignore = [ "E501", # line too long, handled by black "B008", # do not perform function calls in argument defaults "C901", # too complex ] # Allow fix for all enabled rules (when `--fix`) is provided. fixable = ["ALL"] unfixable = [] # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" [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"