-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (78 loc) · 2.72 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (78 loc) · 2.72 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
[project]
name = "waxcut"
version = "0.3.1"
description = "Frame-accurate, lossless MP3 splitting and duration parsing in pure Python — no ffmpeg, no subprocess, no decode step."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.10"
authors = [{ name = "jkeychan" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/jkeychan/waxcut"
Repository = "https://github.com/jkeychan/waxcut"
Issues = "https://github.com/jkeychan/waxcut/issues"
Documentation = "https://waxcut.pages.dev/"
Changelog = "https://github.com/jkeychan/waxcut/blob/main/CHANGELOG.md"
[build-system]
requires = ["uv_build>=0.12.0,<0.13.0"]
build-backend = "uv_build"
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.mypy]
strict = true
files = ["src/waxcut"]
[tool.ruff]
line-length = 110
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"B", # bugbear (likely-bug patterns)
"UP", # pyupgrade (modern syntax)
"SIM", # simplify
"I", # isort
"N", # naming conventions
"C4", # comprehensions
"RUF", # ruff-specific
"S", # bandit (security)
"PL", # pylint
"PERF", # performance
"PTH", # prefer pathlib over os.path
"A", # builtin shadowing
"ARG", # unused arguments
"T20", # no stray print()
"ERA", # no commented-out code
]
[tool.ruff.lint.per-file-ignores]
# assert is how pytest tests work, not a production runtime-check anti-pattern;
# the fixed, hardcoded ffmpeg invocation isn't untrusted input; expected byte
# counts in test fixtures are concrete values, not magic numbers to name.
"tests/*" = ["S101", "S603", "S607", "PLR2004"]
# A standalone dev diagnostic, not a library module or test -- printing
# results to stdout is the entire point, and the fixed, hardcoded ffmpeg
# invocation isn't untrusted input (same rationale as tests/* above).
"bench/*" = ["T201", "S603", "S607"]
[dependency-groups]
dev = [
"pytest>=9.1.1",
"mutagen>=1.48.1",
"mypy>=1.19.0",
"ruff>=0.16.1",
]