Skip to content

Commit 0fb7657

Browse files
committed
refactor: use dependency groups
Signed-off-by: nstarman <[email protected]>
1 parent 9139641 commit 0fb7657

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: check-useless-excludes
1212

1313
- repo: https://github.com/abravalheri/validate-pyproject
14-
rev: v0.16
14+
rev: v0.23
1515
hooks:
1616
- id: validate-pyproject
1717

pyproject.toml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,38 @@ dependencies = [
2727
[project.optional-dependencies]
2828
dev = [
2929
"numpy",
30-
"pytest>=6",
31-
"pytest-cov",
32-
"coveralls",
33-
"pre-commit",
3430
"IPython",
3531
"black==23.9.0",
3632
"ghp-import",
37-
"wheel",
3833
"build",
39-
"tox",
40-
"jupyter-book",
4134
"mypy",
4235
"pyright>=1.1.331",
43-
"ruff==0.1.0",
44-
"sybil",
4536
]
4637

4738
[project.urls]
4839
repository = "https://github.com/beartype/plum"
4940

41+
42+
[dependency-groups]
43+
dev = [
44+
{ include-group = "docs" },
45+
{ include-group = "lint" },
46+
{ include-group = "test" },
47+
]
48+
lint = [
49+
"pre-commit",
50+
]
51+
test = [
52+
"tox",
53+
"pytest>=6",
54+
"pytest-cov",
55+
"coveralls",
56+
"sybil",
57+
]
58+
docs = [
59+
"jupyter-book",
60+
]
61+
5062
[tool.hatch.build]
5163
include = ["plum*"]
5264

0 commit comments

Comments
 (0)