Skip to content

Commit 785741e

Browse files
committed
Add a dependency group for our new test dependency.
And remove the minor duplicate install of the package which was happening.
1 parent dc54734 commit 785741e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ def tests(session, installable):
6060
"""
6161
env = dict(JSON_SCHEMA_TEST_SUITE=str(ROOT / "json"))
6262

63-
session.install("virtue", installable)
64-
session.install("jsonpath-ng", installable)
63+
session.install("--group=test", installable)
6564

6665
if session.posargs and session.posargs[0] == "coverage":
6766
if len(session.posargs) > 1 and session.posargs[1] == "github":

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ Tidelift = "https://tidelift.com/subscription/pkg/pypi-jsonschema?utm_source=pyp
7878
Changelog = "https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst"
7979
Source = "https://github.com/python-jsonschema/jsonschema"
8080

81+
[dependency-groups]
82+
test = ["virtue", "jsonpath-ng"]
83+
8184
[tool.hatch.metadata.hooks.fancy-pypi-readme]
8285
content-type = "text/x-rst"
8386

0 commit comments

Comments
 (0)