Skip to content

Commit ef2ec5d

Browse files
authored
Used PEP 735 Dependency Groups. (#211)
1 parent c9578e9 commit ef2ec5d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,16 @@ dependencies = [
3838
"django>=4.2",
3939
"django-crispy-forms>=2.3",
4040
]
41-
[project.optional-dependencies]
41+
[dependency-groups]
4242
test = [
4343
"pytest",
4444
"pytest-django",
4545
]
46+
lint = [
47+
"black",
48+
"isort",
49+
"flake8",
50+
]
4651
[project.urls]
4752
"CI" = "https://github.com/django-crispy-forms/crispy-bootstrap5/actions"
4853
"Changelog" = "https://github.com/django-crispy-forms/crispy-bootstrap5/releases"

tox.ini

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ deps =
1515
django52: django>=5.2a1,<5.3
1616
crispy-release: django-crispy-forms>=2.3
1717
crispy-latest: https://github.com/django-crispy-forms/django-crispy-forms/archive/main.tar.gz
18-
extras = test
18+
dependency_groups = test
1919
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m pytest {posargs}
2020

2121
[testenv:lint]
@@ -24,10 +24,7 @@ commands =
2424
black crispy_bootstrap5 --check
2525
isort crispy_bootstrap5 --check --dif
2626
flake8 crispy_bootstrap5
27-
deps =
28-
black
29-
flake8
30-
isort
27+
dependency_groups = lint
3128

3229
[flake8]
3330
max-line-length = 88

0 commit comments

Comments
 (0)