Skip to content

Commit 87e1f74

Browse files
committed
Use dependency group for dev dependencies
1 parent 7cbcc9f commit 87e1f74

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",
@@ -60,20 +59,32 @@ spa = [
6059
"channels[daphne]>=4.0.0,<5",
6160
"channels-redis>=4",
6261
]
62+
63+
[dependency-groups]
6364
dev = [
6465
"django-debug-toolbar",
65-
"coverage",
6666
"django-extensions",
6767
"ruff",
6868
"djlint",
6969
"ipython",
7070
"pre-commit",
7171
"python-dotenv",
72-
"towncrier",
7372
"werkzeug",
73+
"towncrier",
74+
{include-group = "build"},
75+
{include-group = "docs"},
76+
{include-group = "test"},
77+
]
78+
test = [
79+
"coverage",
7480
"tox>=4",
81+
]
82+
build = [
7583
"build", # for debugging builds/installs
7684
]
85+
docs = [
86+
"sphinx>=2.2.0",
87+
]
7788

7889
[tool.hatch.version]
7990
source = "versioningit"

0 commit comments

Comments
 (0)