Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 5af02b2

Browse files
committed
Update project to use dependency groups
1 parent 8d21336 commit 5af02b2

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

pyproject.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@ dev = [
4141
"dissect.util>=3.5.dev,<4.0.dev",
4242
]
4343

44+
[dependency-groups]
45+
test = [
46+
"pytest",
47+
]
48+
lint = [
49+
"ruff==0.13.1",
50+
"vermin",
51+
]
52+
build = [
53+
"build",
54+
]
55+
debug = [
56+
"ipdb",
57+
]
58+
dev = [
59+
{include-group = "test"},
60+
{include-group = "lint"},
61+
{include-group = "debug"},
62+
]
63+
4464
[tool.ruff]
4565
line-length = 120
4666
required-version = ">=0.9.0"

tox.ini

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist = lint, py3, pypy3
44
# requires if they are not available on the host system. This requires the
55
# locally installed tox to have a minimum version 3.3.0. This means the names
66
# of the configuration options are still according to the tox 3.x syntax.
7-
minversion = 4.4.3
7+
minversion = 4.27.0
88
# This version of virtualenv will install setuptools version 68.2.2 and pip
99
# 23.3.1. These versions fully support python projects defined only through a
1010
# pyproject.toml file (PEP-517/PEP-518/PEP-621). This pip version also support
@@ -14,34 +14,30 @@ requires = virtualenv>=20.24.6
1414
[testenv]
1515
extras = dev
1616
deps =
17-
pytest
1817
pytest-cov
1918
coverage
19+
dependency_groups = test
2020
commands =
2121
pytest --basetemp="{envtmpdir}" {posargs:--color=yes --cov=dissect --cov-report=term-missing -v tests}
2222
coverage report
2323
coverage xml
2424

2525
[testenv:build]
2626
package = skip
27-
deps =
28-
build
27+
dependency_groups = build
2928
commands =
3029
pyproject-build
3130

3231
[testenv:fix]
3332
package = skip
34-
deps =
35-
ruff==0.13.1
33+
dependency_groups = lint
3634
commands =
3735
ruff check --fix dissect tests
3836
ruff format dissect tests
3937

4038
[testenv:lint]
4139
package = skip
42-
deps =
43-
ruff==0.13.1
44-
vermin
40+
dependency_groups = lint
4541
commands =
4642
ruff check dissect tests
4743
ruff format --check dissect tests

0 commit comments

Comments
 (0)