-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (75 loc) · 1.93 KB
/
pyproject.toml
File metadata and controls
89 lines (75 loc) · 1.93 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
[project]
name = "audify"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10,<=3.13"
dependencies = [
"bs4>=0.0.2",
"click>=8.1.8",
"ebooklib>=0.18",
"markdown>=3.7",
"pypdf2>=3.0.1",
"sentencepiece>=0.2.0",
"streamlit>=1.33.0",
"soundfile>=0.13.1",
"litellm>=1.59.10",
"tqdm>=4.67.1",
"pydub>=0.25.1",
"reportlab>=4.4.3",
"boto3-stubs>=1.42.37",
"boto3>=1.42.37",
]
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools>=44.1.0", "wheel>=0.34.2"]
build-backend = "poetry.core.masonry.api"
[dependency-groups]
dev = [
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"ruff>=0.9.3",
"taskipy>=1.13.0",
"isort>=5.13.2",
"mypy>=1.11.2",
"ipykernel>=6.29.5",
"types-requests>=2.32.4.20250913",
"pipreqs>=0.5.0",
]
gpu = ["black>=25.1.0"]
[tool.coverage.report]
exclude_lines = ["if __name__ == .__main__.:", "def test_", "ABC"]
omit = ["*.venv/*"]
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py"]
addopts = []
filterwarnings = ["ignore::DeprecationWarning", "ignore::FutureWarning"]
[tool.ruff]
exclude = [
"*/migrations/*",
"*/settings.py",
"*/wsgi.py",
"*/asgi.py",
"*/mlflwo/*",
"*/__pycache__/*",
"data/*",
]
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PT']
exclude = ['.venv']
[tool.mypy]
ignore_missing_imports = true
[tool.uv.sources]
torch = [{ index = "pytorch-cu128" }]
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[tool.taskipy.tasks]
test = "uv run pytest --cov=audify --cov-report=term-missing --cov-report=xml"
format = "ruff check ./audify ./tests --fix"
pre_test = "task format && mypy ./audify ./tests --ignore-missing-imports"
post_test = "uv run coverage html"
run = "uv run python -m audify.start"
audiobook = "uv run python -m audify.create_audiobook"
up = "docker compose up"