change pyproject metadata to use uv and hatch instead of pdm

This commit is contained in:
mbsantiago 2024-11-10 18:20:18 +00:00
parent 3f34164028
commit c65fe1c9f9
2 changed files with 1501 additions and 51 deletions

View File

@ -1,8 +1,3 @@
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"pytest>=7.2.2",
]
[project] [project]
name = "batdetect2" name = "batdetect2"
@ -10,7 +5,7 @@ version = "1.0.8"
description = "Deep learning model for detecting and classifying bat echolocation calls in high frequency audio recordings." description = "Deep learning model for detecting and classifying bat echolocation calls in high frequency audio recordings."
authors = [ authors = [
{ "name" = "Oisin Mac Aodha", "email" = "oisin.macaodha@ed.ac.uk" }, { "name" = "Oisin Mac Aodha", "email" = "oisin.macaodha@ed.ac.uk" },
{ "name" = "Santiago Martinez Balvanera", "email" = "santiago.balvanera.20@ucl.ac.uk" } { "name" = "Santiago Martinez Balvanera", "email" = "santiago.balvanera.20@ucl.ac.uk" },
] ]
dependencies = [ dependencies = [
"librosa>=0.10.1", "librosa>=0.10.1",
@ -49,34 +44,33 @@ keywords = [
] ]
[build-system] [build-system]
requires = ["pdm-pep517>=1.0.0"] requires = ["hatchling"]
build-backend = "pdm.pep517.api" build-backend = "hatchling.build"
[project.scripts] [project.scripts]
batdetect2 = "batdetect2.cli:cli" batdetect2 = "batdetect2.cli:cli"
[tool.black] [tool.uv]
dev-dependencies = ["pytest>=7.2.2"]
[tool.ruff]
line-length = 79 line-length = 79
target-version = "py39"
[[tool.mypy.overrides]] [tool.ruff.format]
module = [ docstring-code-format = true
"librosa", docstring-code-line-length = 79
"pandas",
]
ignore_missing_imports = true
[tool.pylsp-mypy] [tool.ruff.lint]
enabled = false select = ["E4", "E7", "E9", "F", "B", "Q", "I", "D"]
live_mode = true ignore = ["D1"]
strict = true
[tool.pydocstyle] [tool.ruff.lint.pydocstyle]
convention = "numpy" convention = "numpy"
[tool.pyright] [tool.pyright]
include = [ include = ["bat_detect", "tests"]
"bat_detect",
"tests",
]
venvPath = "." venvPath = "."
venv = ".venv" venv = ".venv"
pythonVersion = "3.9"
pythonPlatform = "All"

1456
uv.lock generated Normal file

File diff suppressed because it is too large Load Diff