Skip to content

Commit 99ad1e7

Browse files
committed
Use dependency group for dev dependencies
1 parent 438a022 commit 99ad1e7

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
@@ -50,7 +50,6 @@ dynamic = ["version"]
5050
"Homepage" = "https://github.com/Uninett/Argus"
5151

5252
[project.optional-dependencies]
53-
docs = ["sphinx>=2.2.0"]
5453
htmx = [
5554
"django-htmx",
5655
"django-widget-tweaks==1.5.0",
@@ -62,20 +61,32 @@ spa = [
6261
"channels[daphne]>=4.0.0,<5",
6362
"channels-redis>=4",
6463
]
64+
65+
[dependency-groups]
6566
dev = [
6667
"django-debug-toolbar",
67-
"coverage",
6868
"django-extensions",
6969
"ruff",
7070
"djlint",
7171
"ipython",
7272
"pre-commit",
7373
"python-dotenv",
74-
"towncrier",
7574
"werkzeug",
75+
"towncrier",
76+
{include-group = "build"},
77+
{include-group = "docs"},
78+
{include-group = "test"},
79+
]
80+
test = [
81+
"coverage",
7682
"tox>=4",
83+
]
84+
build = [
7785
"build", # for debugging builds/installs
7886
]
87+
docs = [
88+
"sphinx>=2.2.0",
89+
]
7990

8091
[tool.djlint]
8192
profile="django"

0 commit comments

Comments
 (0)