Skip to content

Commit 0c69104

Browse files
authored
build!: Split dev deps into dev, tests, lint, docs groups (#619)
1 parent 596b07c commit 0c69104

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/python-cqa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
submodules: recursive
1212
- uses: actions/setup-python@v5
1313
- name: Install dependencies
14-
run: pip install -e '.[dev]'
14+
run: pip install -e '.[lint]'
1515
- name: Check style
1616
run: python3 -m ruff check --output-format=github
1717
- name: Check formatting
@@ -43,7 +43,7 @@ jobs:
4343
python-version: ${{ matrix.python-version }}
4444
- name: Install dependencies
4545
run: |
46-
pip install -e .[dev,extras]
46+
pip install -e .[tests,extras]
4747
- name: Test with pytest
4848
run: |
4949
python -m pytest --vcr-record=none

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ venv/%:
4545
#=> develop: install package in develop mode
4646
.PHONY: develop setup
4747
develop setup:
48-
pip install -e .[dev,extras,notebooks]; \
48+
pip install -e .[tests,lint,docs,extras,notebooks]; \
4949
pre-commit install
5050

5151
#=> devready: create venv, install prerequisites, install pkg in develop mode

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,18 @@ extras = [
5353
"click",
5454
"pysam==0.23.0", # pinned pending https://github.com/ga4gh/vrs-python/issues/560
5555
]
56-
dev = [
57-
# tests
56+
tests = [
5857
"pytest",
5958
"pytest-cov",
6059
"pytest-vcr",
6160
"vcrpy>=7.0.0",
6261
"pyyaml",
63-
# style
62+
]
63+
lint = [
6464
"pre-commit>=4.0.1",
6565
"ruff==0.9.4",
66-
# docs
66+
]
67+
docs = [
6768
"sphinx",
6869
"sphinx_rtd_theme",
6970
]

0 commit comments

Comments
 (0)