Skip to content

Commit a7ae6ce

Browse files
authored
Merge pull request #52 from stefanofusai/51-move-development-dependencies-to-dependency-groups
2 parents bee0df3 + 1fdc3ab commit a7ae6ce

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class MyViewSet(MultiSerializerMixin, ModelViewSet):
7575
## Development
7676

7777
```bash
78-
uv sync
78+
uv sync --group=development
7979
uv run pre-commit install --install-hooks
8080
uv run pre-commit install --hook-type=commit-msg
8181
```

pyproject.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ maintainers = [
1212
requires-python = ">=3.12"
1313
dependencies = [
1414
"djangorestframework==3.15.2",
15-
"pre-commit==4.0.1",
16-
"ruff==0.8.2",
1715
]
1816

1917
[project.urls]
@@ -24,6 +22,12 @@ Repository = "https://github.com/stefanofusai/drf-multi-serializers"
2422
requires = ["hatchling"]
2523
build-backend = "hatchling.build"
2624

25+
[dependency-groups]
26+
development = [
27+
"pre-commit==4.0.1",
28+
"ruff==0.8.2",
29+
]
30+
2731
[tool.mypy]
2832
python_version = "3.12"
2933
strict = true

uv.lock

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)