Skip to content

Commit fc9c2d2

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

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
- name: Install dependencies
4949
run: |
5050
python -m pip install --upgrade pip
51-
python -m pip install --upgrade --no-cache-dir -e '.[dev]'
51+
python -m pip install --no-cache-dir --group dev
52+
python -m pip install --no-cache-dir -e .
5253
${{ matrix.value.extra-install }}
5354
- name: Test linter assertions
5455
run: |

.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

plum/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import abc
22
import sys
3-
from typing import Callable, Hashable, List, Sequence
3+
from collections.abc import Callable
4+
from typing import Hashable, List, Sequence
45

56
from typing_extensions import deprecated
67

pyproject.toml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,35 @@ dependencies = [
2323
"rich>=10.0"
2424
]
2525

26-
[project.optional-dependencies]
26+
[project.urls]
27+
repository = "https://github.com/beartype/plum"
28+
documentation = "https://beartype.github.io/plum"
29+
30+
31+
[dependency-groups]
2732
dev = [
33+
{ include-group = "docs" },
34+
{ include-group = "lint" },
35+
{ include-group = "test" },
36+
]
37+
lint = [
38+
"pre-commit",
39+
]
40+
test = [
41+
"IPython",
2842
"numpy",
43+
"tox",
2944
"pytest>=6",
3045
"pytest-cov",
3146
"coveralls",
32-
"pre-commit",
33-
"IPython",
34-
"black==23.9.0",
35-
"ghp-import",
36-
"wheel",
37-
"build",
38-
"tox",
39-
"jupyter-book",
47+
"sybil",
4048
"mypy",
4149
"pyright>=1.1.331",
42-
"ruff>=0.2.1",
4350
"sybil",
4451
]
45-
46-
[project.urls]
47-
repository = "https://github.com/beartype/plum"
48-
documentation = "https://beartype.github.io/plum"
52+
docs = [
53+
"jupyter-book",
54+
]
4955

5056

5157
[build-system]

0 commit comments

Comments
 (0)