Skip to content

Commit b628622

Browse files
committed
feat: use dependency-groups
1 parent b0ea40e commit b628622

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Install dependencies
3030
run: |
31-
python -m pip install --upgrade pip
32-
pip install -e .
33-
pip install pytest
31+
pip install -e . --group test
3432
- name: Test with pytest
3533
run: |
3634
pytest

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ classifiers = [
2323
"Programming Language :: Python :: 3.11",
2424
]
2525
dynamic = ["version"]
26-
27-
[project.optional-dependencies]
28-
2926
[project.entry-points.hatch]
3027
nodejs = "hatch_nodejs_version.hooks"
3128

@@ -34,6 +31,9 @@ Homepage = "https://github.com/agoose77/hatch-nodejs-version"
3431
"Issue Tracker" = "https://github.com/agoose77/hatch-nodejs-version/issues"
3532
"Source Code" = "https://github.com/agoose77/hatch-nodejs-version"
3633

34+
[dependency-groups]
35+
test = ["pytest>=7.0"]
36+
3737
[tool.hatch.version]
3838
path = "hatch_nodejs_version/_version.py"
3939

0 commit comments

Comments
 (0)