-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (68 loc) · 1.73 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
[project]
name = "audioclass"
version = "0.2.2"
description = "A Python package providing a common interface for running machine learning models for audio classification tasks."
authors = [
{ name = "Santiago Martinez Balvanera", email = "[email protected]" },
]
dependencies = [
"pandas>=2.0",
"netcdf4>=1.6.5",
"soundevent[audio]>=2.2",
"tqdm>=4.66.4",
"pyarrow>=14.0",
"requests>=2.0",
]
readme = "README.md"
requires-python = ">=3.9,<3.12"
license = { text = "MIT" }
[project.optional-dependencies]
tensorflow = ["tensorflow>=2.0", "tensorflow-hub>=0.16.1"]
tflite = ["tflite-runtime>=2.14.0", "numpy<2"]
birdnet = ["audioclass[tflite]"]
birdnet_analyzer = ["audioclass[tensorflow]"]
perch = ["audioclass[tensorflow]"]
all = ["audioclass[tensorflow]"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/audioclass"]
[tool.uv]
dev-dependencies = [
"pytest>=8.2.1",
"coverage>=7.5.3",
"pytest-coverage>=0.0",
"pytest-mock>=3.14.0",
"ruff>=0.4.6",
"pyright>=1.1.367",
"mkdocs>=1.6.0",
"mkdocstrings[python]>=0.25.1",
"mkdocs-material>=9.5.25",
"nox>=2024.4.15",
]
[tool.ruff]
line-length = 79
target-version = "py39"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 79
[tool.ruff.lint]
preview = true
select = ["E4", "E7", "E9", "F", "B", "Q", "I", "D", "DOC"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pyright]
venvPath = "."
venv = ".venv"
exclude = [".venv"]
include = ["src"]
pythonVersion = "3.9"
[tool.coverage.run]
branch = true
source = ["src/audioclass"]
command_line = "-m pytest"
[tool.pytest.ini_options]
markers = ["tflite", "tensorflow"]