Skip to content

Commit bb7bc2d

Browse files
authored
Use dependency-groups for development dependencies (#83)
Ref: https://packaging.python.org/en/latest/specifications/dependency-groups/
1 parent 84232b1 commit bb7bc2d

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- name: Install package
6363
run: |
64-
python -m pip install .[test]
64+
python -m pip install --group "test" .
6565
python -m docstub --version
6666
docstub --help
6767

pyproject.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ dependencies = [
4040
"isort >=5.13.2",
4141
]
4242

43-
[project.optional-dependencies]
43+
[project.urls]
44+
Homepage = "https://github.com/lagru/docstub"
45+
46+
[project.scripts]
47+
docstub = "docstub.__main__:cli"
48+
49+
50+
[dependency-groups]
4451
dev = [
4552
"pre-commit >=4.3.0",
4653
"ipython",
@@ -52,12 +59,6 @@ test = [
5259
"basedpyright >=1.31",
5360
]
5461

55-
[project.urls]
56-
Homepage = "https://github.com/lagru/docstub"
57-
58-
[project.scripts]
59-
docstub = "docstub.__main__:cli"
60-
6162

6263
[tool.setuptools_scm]
6364
write_to = "src/docstub/_version.py"

0 commit comments

Comments
 (0)