From abeb4062635b0fe48d3234ca89575abc976c50cc Mon Sep 17 00:00:00 2001 From: Stefano Fusai Date: Fri, 6 Dec 2024 01:27:00 +0100 Subject: [PATCH] [#47] Feat: move development dependencies to dependency-groups --- README.md | 2 +- pyproject.toml | 8 ++++++-- uv.lock | 16 ++++++++++++---- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bc3a355..1033221 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ HTTPCACHE_STORAGE = "scrapy_redis_httpcache.RedisCacheStorage" ## Development ```bash -uv sync +uv sync --group=development uv run pre-commit install --install-hooks uv run pre-commit install --hook-type=commit-msg ``` diff --git a/pyproject.toml b/pyproject.toml index f9443ff..7a7ecb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,9 +11,7 @@ maintainers = [ ] requires-python = ">=3.12" dependencies = [ - "pre-commit==4.0.1", "redis==5.2.0", - "ruff==0.8.2", "scrapy==2.12.0", ] @@ -25,6 +23,12 @@ Repository = "https://github.com/stefanofusai/scrapy-redis-httpcache" requires = ["hatchling"] build-backend = "hatchling.build" +[dependency-groups] +development = [ + "pre-commit==4.0.1", + "ruff==0.8.2", +] + [tool.mypy] python_version = "3.12" strict = true diff --git a/uv.lock b/uv.lock index 637b62e..00d1eb3 100644 --- a/uv.lock +++ b/uv.lock @@ -558,20 +558,28 @@ name = "scrapy-redis-httpcache" version = "1.2.0" source = { editable = "." } dependencies = [ - { name = "pre-commit" }, { name = "redis" }, - { name = "ruff" }, { name = "scrapy" }, ] +[package.dev-dependencies] +development = [ + { name = "pre-commit" }, + { name = "ruff" }, +] + [package.metadata] requires-dist = [ - { name = "pre-commit", specifier = "==4.0.1" }, { name = "redis", specifier = "==5.2.0" }, - { name = "ruff", specifier = "==0.8.2" }, { name = "scrapy", specifier = "==2.12.0" }, ] +[package.metadata.requires-dev] +development = [ + { name = "pre-commit", specifier = "==4.0.1" }, + { name = "ruff", specifier = "==0.8.2" }, +] + [[package]] name = "service-identity" version = "24.2.0"