-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (117 loc) · 3.31 KB
/
Copy pathpyproject.toml
File metadata and controls
132 lines (117 loc) · 3.31 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
126
127
128
129
130
131
132
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "visqol-python"
dynamic = ["version"]
description = "ViSQOL - Virtual Speech Quality Objective Listener (Pure Python)"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{name = "Shan Jiang"},
]
keywords = [
"audio-quality", "speech-quality", "MOS", "PESQ", "POLQA",
"visqol", "objective-metric", "perceptual-quality",
"numba", "batch-processing",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
dependencies = [
"numpy>=1.20",
"scipy>=1.7",
"soundfile>=0.10",
"libsvm-official>=3.25",
]
[project.optional-dependencies]
accel = ["numba>=0.57"]
lattice = ["ai-edge-litert>=2.1.5"]
fftw = ["pyfftw>=0.13"]
all = [
"numba>=0.57",
"ai-edge-litert>=2.1.5",
"pyfftw>=0.13",
]
test = ["pytest>=7.0"]
dev = [
"pytest>=7.0",
"ruff>=0.4",
"mypy>=1.8",
"numba>=0.57",
"ai-edge-litert>=2.1.5",
"pyfftw>=0.13",
]
[project.urls]
Homepage = "https://github.com/talker93/visqol-python"
Changelog = "https://github.com/talker93/visqol-python/blob/main/CHANGELOG.md"
"Bug Reports" = "https://github.com/talker93/visqol-python/issues"
Source = "https://github.com/talker93/visqol-python"
"Original C++" = "https://github.com/google/visqol"
[project.scripts]
visqol = "visqol.__main__:main"
[tool.setuptools.dynamic]
version = {attr = "visqol.__version__"}
[tool.setuptools.packages.find]
exclude = ["tests*"]
[tool.setuptools.package-data]
visqol = ["model/*.txt", "model/*.tflite", "py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py310"
line-length = 95
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line length handled by formatter
"RUF001", # ambiguous unicode in string (intentional mathematical symbols)
"RUF002", # ambiguous unicode in docstring (intentional: ×, −)
"RUF003", # ambiguous unicode in comment (intentional: ×, →)
]
[tool.ruff.lint.per-file-ignores]
"tests/bench_*.py" = ["E402", "E702"] # bench scripts use sys.path manipulation
"tests/test_parallel_correctness.py" = ["E402"]
[tool.ruff.lint.isort]
known-first-party = ["visqol"]
[tool.mypy]
strict = true
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
"svmutil.*",
"libsvm.*",
"soundfile.*",
"numba.*",
"ai_edge_litert.*",
"pyfftw.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["visqol.numba_accel"]
# numba @njit decorators are untyped; strict mode is not feasible here
strict = false
disallow_untyped_defs = false
disallow_untyped_decorators = false
warn_unused_ignores = false