-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (110 loc) · 3.13 KB
/
pyproject.toml
File metadata and controls
125 lines (110 loc) · 3.13 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "phaze"
version = "0.1.0"
description = "A music alignment tool"
license = "MIT"
requires-python = ">=3.13,<3.14"
dependencies = [
"alembic>=1.18.4",
"saq[redis]>=0.26.3",
"asyncpg>=0.31.0",
"beautifulsoup4>=4.14.3",
"essentia-tensorflow>=2.1b6.dev1389; sys_platform != 'linux' or platform_machine == 'x86_64'",
"fastapi>=0.135.3",
"httpx>=0.28.1",
"litellm>=1.83.5,<1.84.0",
"lxml>=6.0.4",
"mutagen>=1.47.0",
"numpy>=2.4.4",
"pydantic-settings>=2.13.1",
"python-multipart>=0.0.26",
"rapidfuzz>=3.14.5",
"sqlalchemy>=2.0.49",
"sse-starlette>=3.3.4",
"uvicorn>=0.44.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/phaze"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"integration: tests that require external services (database, redis, etc.)",
]
[tool.ruff]
line-length = 150
target-version = "py313"
[tool.ruff.lint]
select = ["ARG", "B", "C4", "E", "F", "I", "PLC", "PTH", "RUF", "S", "SIM", "T20", "TCH", "UP", "W", "W191"]
ignore = ["B008", "C901", "E501", "S101"]
[tool.ruff.lint.per-file-ignores]
"src/phaze/main.py" = ["T201"]
"src/phaze/cli/**" = ["T201"]
"tests/**" = ["T201", "PLC", "S105", "ARG001"]
"services/**" = ["S603", "S607"]
[tool.ruff.lint.isort]
lines-after-imports = 2
combine-as-imports = true
split-on-trailing-comma = true
force-sort-within-sections = true
known-first-party = ["phaze"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = false
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
mypy_path = ["src"]
exclude = "^(tests/|prototype/|services/)"
[[tool.mypy.overrides]]
module = ["essentia", "essentia.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["mutagen", "mutagen.*"]
ignore_missing_imports = true
[tool.coverage.run]
source = ["phaze"]
omit = ["tests/*"]
concurrency = ["greenlet", "thread"]
[tool.coverage.report]
fail_under = 85
precision = 2
show_missing = true
# Environment restrictions for uv to avoid iOS and other incompatible platforms
[tool.uv]
environments = [
# Only support Linux platforms that we build for in CI/CD
"sys_platform == 'linux' and platform_machine == 'x86_64'", # linux/amd64
"sys_platform == 'linux' and platform_machine == 'aarch64'", # linux/arm64
# Also support local development on macOS
"sys_platform == 'darwin' and platform_machine == 'x86_64'", # macOS Intel
"sys_platform == 'darwin' and platform_machine == 'arm64'", # macOS Apple Silicon
]
[dependency-groups]
dev = [
"bandit>=1.9.4",
"greenlet>=3.4.0",
"httpx>=0.28.1",
"mypy>=1.20.1",
"pip-audit>=2.10.0",
"pre-commit>=4.5.1",
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"ruff>=0.15.10",
]