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]
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."
authors = [
{ "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 = [
"librosa>=0.10.1",
@ -49,34 +44,33 @@ keywords = [
]
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
batdetect2 = "batdetect2.cli:cli"
[tool.black]
[tool.uv]
dev-dependencies = ["pytest>=7.2.2"]
[tool.ruff]
line-length = 79
target-version = "py39"
[[tool.mypy.overrides]]
module = [
"librosa",
"pandas",
]
ignore_missing_imports = true
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 79
[tool.pylsp-mypy]
enabled = false
live_mode = true
strict = true
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "Q", "I", "D"]
ignore = ["D1"]
[tool.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pyright]
include = [
"bat_detect",
"tests",
]
include = ["bat_detect", "tests"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.9"
pythonPlatform = "All"

1456
uv.lock generated Normal file

File diff suppressed because it is too large Load Diff