-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
202 lines (174 loc) · 4.66 KB
/
pyproject.toml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[project]
name = "pitch-detectors"
version = "0.6.0"
authors = [
{name = "Alexander Rodionov", email = "[email protected]"},
]
description = "collection of pitch detection algorithms with unified interface"
requires-python = ">=3.8,<3.13"
dependencies = [
"AMFM-decompy",
"crepe>=0.0.16", # https://github.com/marl/crepe/pull/103
"dsplib>=0.9.0",
"librosa",
"numpy<2.0", # todo: upgrade after tensorflow will support it
"praat-parselmouth>=0.4.3",
"pyreaper>=0.0.9",
"pysptk",
"pyworld>=0.3.2",
"resampy",
"scipy",
"tensorflow",
"tensorflow-hub",
"torch<=2.3.1", # greater version breaks tensorflow-gpu-based algorithms (gpu unavailable error)
"torch-yin",
"torchcrepe>=0.0.18",
"penn",
"pydantic>=2.0",
]
[project.optional-dependencies]
dev = [
"bumpver",
"pre-commit",
"pytest",
"pytest-order",
"pytest-cov",
"pytest-env",
"mir_eval",
"tqdm",
"redis",
"musiclib==2.1.0",
"python-dotenv",
"tabulate",
"s3fs",
]
[project.urls]
source = "https://github.com/tandav/pitch-detectors"
# docs = "https://tandav.github.io/pitch-detectors/"
issues = "https://github.com/tandav/pitch-detectors/issues"
"release notes" = "https://github.com/tandav/pitch-detectors/releases"
# ==============================================================================
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
# [tool.setuptools]
# packages = ["pitch_detectors"]
[tool.setuptools.packages.find]
exclude = ["data*"]
# ==============================================================================
[tool.bumpver]
current_version = "v0.6.0"
version_pattern = "vMAJOR.MINOR.PATCH"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^version = "{pep440_version}"',
'^current_version = "{version}"',
]
"pitch_detectors/__init__.py" = [
"^__version__ = '{pep440_version}'",
]
# ==============================================================================
[tool.mypy]
# todo: review this
pretty = true
show_traceback = true
color_output = true
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
implicit_reexport = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
plugins = [
"pydantic.mypy",
]
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
# ==============================================================================
[tool.ruff.lint]
extend-select = [
"W",
"C",
"I",
"SIM",
"TCH",
"C4",
"S",
"BLE",
"B",
"T10",
"INP",
"PIE",
"PL",
"RUF",
]
ignore = [
"E501", # line too long
"PLR0913",
"TCH003",
"S603",
]
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["INP001"]
"scripts/*" = ["INP001", "S101"]
"tests/*" = ["S101"]
[tool.ruff.lint.isort]
force-single-line = true
# ==============================================================================
[tool.pylint.MASTER]
load-plugins=[
"pylint_per_file_ignores",
]
[tool.pylint.messages-control]
disable = [
"missing-function-docstring",
"missing-class-docstring",
"missing-module-docstring",
"line-too-long",
"import-outside-toplevel",
"unused-variable",
"too-many-arguments",
"import-error",
"too-few-public-methods",
"unspecified-encoding",
"redefined-outer-name",
"too-many-locals",
"invalid-name",
"protected-access",
"cyclic-import",
]
[tool.pylint-per-file-ignores]
"/tests/" = "redefined-outer-name"
# ==============================================================================
[tool.autopep8]
ignore="E501,E701"
recursive = true
aggressive = 3
# ==============================================================================
[tool.pyright]
venvPath = "/home/tandav/.cache/virtualenvs"
venv = "pitch-detectors"
# ==============================================================================
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Type google._upb._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new.:DeprecationWarning",
"ignore:Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new.:DeprecationWarning",
]
# ==============================================================================