From 959670aa2c1b62ac78e0d69ae3ae7a2cac6a9542 Mon Sep 17 00:00:00 2001 From: ljnsn Date: Sun, 13 Oct 2024 23:11:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=EF=B8=8F=20package:=20switch=20to?= =?UTF-8?q?=20uv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 38 +++++++++++++++++--------------------- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d22e1b..2be90ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -64,10 +64,10 @@ repos: hooks: - id: conventional-gitmoji - - repo: https://github.com/pdm-project/pdm - rev: 2.19.2 + - repo: https://github.com/astral-sh/uv-pre-commit + rev: 0.4.19 hooks: - - id: pdm-lock-check + - id: uv-lock - repo: local hooks: diff --git a/pyproject.toml b/pyproject.toml index 5c706aa..6e3e1e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + [project] name = "coinapi-rest" version = "0.0.5" @@ -29,9 +33,19 @@ classifiers = [ "Typing :: Typed", ] -[build-system] -requires = ["pdm-backend"] -build-backend = "pdm.backend" +[tool.uv] +dev-dependencies = [ + "commitizen>=3.16.0", + "coverage>=7.4.3", + "cz-conventional-gitmoji>=0.2.4", + "ipython!=8.18.0", + "mypy>=1.8.0", + "pre-commit>=3.6.2", + "pytest-recording>=0.13.1", + "pytest>=8.0.0", + "ruff>=0.3.0", + "syrupy>=0.0.15", +] [tool.commitizen] name = "cz_gitmoji" @@ -202,24 +216,6 @@ filterwarnings = ["ignore::DeprecationWarning", "ignore::ResourceWarning"] testpaths = ["src", "tests"] markers = ["network: mark a test as needing a network connection"] -[tool.pdm] -distribution = true - -[tool.pdm.dev-dependencies] -lint = ["mypy>=1.8.0", "ruff>=0.3.0"] -test = [ - "coverage>=7.4.3", - "pytest-recording>=0.13.1", - "pytest>=8.0.0", - "syrupy>=0.0.15", -] -dev = [ - "commitizen>=3.16.0", - "cz-conventional-gitmoji>=0.2.4", - "ipython!=8.18.0", - "pre-commit>=3.6.2", -] - [tool.pdm.scripts] lint = "pre-commit run --all-files --color always" test = "coverage run -m pytest -m 'not network'"