Skip to content

Commit 928de69

Browse files
committed
add dev with notebooks dependency option
1 parent 61e1ef5 commit 928de69

File tree

4 files changed

+1185
-9
lines changed

4 files changed

+1185
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Install dependencies
3232
run: |
33-
uv sync --all-extras
33+
uv sync --group dev
3434
3535
- name: Run tests with coverage
3636
run: |
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Install dependencies
5555
run: |
56-
uv sync --all-extras
56+
uv sync --group dev
5757
5858
- name: Check formatting
5959
run: |
@@ -80,7 +80,7 @@ jobs:
8080

8181
- name: Install dependencies
8282
run: |
83-
uv sync --all-extras
83+
uv sync --group dev
8484
8585
- name: Check license headers
8686
run: |

Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ help:
88
@echo "📦 Installation:"
99
@echo " install - Install project dependencies with uv"
1010
@echo " install-dev - Install project with dev dependencies"
11+
@echo " install-dev-notebooks - Install dev + notebook dependencies (Jupyter, etc.)"
1112
@echo ""
1213
@echo "🧪 Testing:"
1314
@echo " test - Run all unit tests"
@@ -39,7 +40,7 @@ clean:
3940

4041
coverage:
4142
@echo "📊 Running tests with coverage analysis..."
42-
uv run pytest --cov=data_designer --cov-report=term-missing --cov-report=html
43+
uv run --group dev pytest --cov=data_designer --cov-report=term-missing --cov-report=html
4344
@echo "✅ Coverage report generated in htmlcov/index.html"
4445

4546
check-all: format-check lint
@@ -70,7 +71,7 @@ lint-fix:
7071

7172
test:
7273
@echo "🧪 Running unit tests..."
73-
uv run pytest
74+
uv run --group dev pytest
7475

7576
check-license-headers:
7677
@echo "🔍 Checking license headers in all files..."
@@ -87,7 +88,12 @@ install:
8788

8889
install-dev:
8990
@echo "📦 Installing project with dev dependencies..."
90-
uv sync --all-extras
91+
uv sync --group dev
9192
@echo "✅ Dev installation complete!"
9293

93-
.PHONY: clean coverage format format-check lint lint-fix test check-license-headers update-license-headers check-all check-all-fix install install-dev
94+
install-dev-notebooks:
95+
@echo "📦 Installing project with notebook dependencies..."
96+
uv sync --group dev --group notebooks
97+
@echo "✅ Dev + notebooks installation complete!"
98+
99+
.PHONY: clean coverage format format-check lint lint-fix test check-license-headers update-license-headers check-all check-all-fix install install-dev install-dev-notebooks

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ dev = [
6161
"pytest-cov>=7.0.0",
6262
"pytest-httpx>=0.35.0",
6363
]
64+
notebooks = [
65+
"jupyter>=1.0.0",
66+
"ipykernel>=6.29.0",
67+
]
6468

6569
[build-system]
6670
requires = ["hatchling", "hatch-vcs"]

0 commit comments

Comments
 (0)