Skip to content

Commit 503a8f1

Browse files
authored
Migrate to dependency-groups (#417)
1 parent 1fa36a5 commit 503a8f1

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
python-version: '3.13'
3636
- name: Install project
37-
run: pip install -e .[dev,test,alembic]
37+
run: pip install --group test --group dev -e .[alembic]
3838
- name: run pre-commit
3939
run: pre-commit run --all
4040
ci-test:
@@ -56,7 +56,7 @@ jobs:
5656
with:
5757
python-version: ${{ matrix.python-version }}
5858
- name: Install project
59-
run: pip install -e .[test,alembic]
59+
run: pip install --group test -e .[alembic]
6060
- name: Install sqlalchemy
6161
run: pip install sqlalchemy==${{ matrix.sqlalchemy-version }}
6262
- name: run tests (with coverage)

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,28 @@ license-files = [
4949
]
5050

5151
[project.optional-dependencies]
52+
alembic = ["alembic~=1.12"]
53+
dev = [
54+
"isort==6.0.1",
55+
"black==25.1.0",
56+
"pre-commit==4.3.0",
57+
"flake8==7.3.0",
58+
"flake8-tergeo==25.7.9.0",
59+
"pylint==3.3.8",
60+
"mypy==1.17.1",
61+
"types-hdbcli==2.25.0.20250809",
62+
"typing-extensions==4.14.1",
63+
"yesqa==1.5.0",
64+
"pyupgrade==3.20.0",
65+
]
66+
test = [
67+
"pytest==8.4.1",
68+
"pytest-cov==6.2.1",
69+
"coverage[toml]==7.10.2",
70+
"diff-cover[toml]==9.6.0",
71+
]
72+
73+
[dependency-groups]
5274
dev = [
5375
"isort==6.0.1",
5476
"black==25.1.0",

0 commit comments

Comments
 (0)