Skip to content

Commit

Permalink
📦️ package: switch to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnsn committed Oct 13, 2024
1 parent ec63b94 commit 959670a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
38 changes: 17 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "coinapi-rest"
version = "0.0.5"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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'"
Expand Down

0 comments on commit 959670a

Please sign in to comment.