Skip to content

Commit d18dc62

Browse files
committed
Use dependency group for dev dependencies
1 parent cea52c4 commit d18dc62

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

pyproject.toml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ dynamic = ["version"]
4848
"Homepage" = "https://github.com/Uninett/Argus"
4949

5050
[project.optional-dependencies]
51-
docs = ["sphinx>=2.2.0"]
5251
htmx = [
5352
"django-htmx",
5453
"django-widget-tweaks==1.5.0",
@@ -59,20 +58,32 @@ spa = [
5958
"channels[daphne]>=4.0.0,<5",
6059
"channels-redis>=4",
6160
]
61+
62+
[dependency-groups]
6263
dev = [
6364
"django-debug-toolbar",
64-
"coverage",
6565
"django-extensions",
6666
"ruff",
6767
"djlint",
6868
"ipython",
6969
"pre-commit",
7070
"python-dotenv",
71-
"towncrier",
7271
"werkzeug",
72+
"towncrier",
73+
{include-group = "build"},
74+
{include-group = "docs"},
75+
{include-group = "test"},
76+
]
77+
test = [
78+
"coverage",
7379
"tox>=4",
80+
]
81+
build = [
7482
"build", # for debugging builds/installs
7583
]
84+
docs = [
85+
"sphinx>=2.2.0",
86+
]
7687

7788
[tool.djlint]
7889
profile="django"

0 commit comments

Comments
 (0)