Skip to content

Commit 4f0233e

Browse files
authored
disable default dev group for uv (#24)
1 parent e89fd85 commit 4f0233e

7 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
java-version: 17
3333
distribution: "zulu"
3434
- name: Install the project
35-
run: uv sync --locked --group dev-spark --no-dev
35+
run: uv sync --locked --group dev-spark
3636
- name: Run code checks
3737
run: uv run --no-dev ruff check
3838
- name: Check code formatting
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
version: 0.280.0
6666
- name: Install the project
67-
run: uv sync --locked
67+
run: uv sync --locked --group dev
6868
- name: Check Databricks CLI
6969
run: databricks current-user me
7070
- name: Run tests

.github/workflows/deploy-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
version: 0.280.0
3636
- name: Install the project
37-
run: uv sync --locked
37+
run: uv sync --locked --group dev
3838
- name: Check Databricks CLI
3939
run: databricks current-user me
4040
- name: Log Bundle Changes

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
version: 0.280.0
3737
- name: Install the project
38-
run: uv sync --locked
38+
run: uv sync --locked --group dev
3939
- name: Check Databricks CLI
4040
run: databricks current-user me
4141
- name: Log Bundle Changes

.github/workflows/validate-bundle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
version: 0.280.0
3535
- name: Install the project
36-
run: uv sync --locked
36+
run: uv sync --locked --group dev
3737
- name: Check Databricks CLI
3838
run: databricks current-user me
3939
- name: Validate Databricks Bundle

AGENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This repo uses Databricks CLI to deploy a Databricks Asset Bundle.
1010
- `tests`: Unit tests for the Python project
1111

1212
## Setup commands
13-
- Install deps: `uv sync --locked --group dev-spark --no-dev`
14-
- Run code checks: `uv run --no-dev ruff check`
15-
- Check code formatting: `uv run --no-dev ruff format --check`
16-
- Run tests: `uv run --no-dev pytest -v`
13+
- Install deps: `uv sync --locked --group dev-spark`
14+
- Run code checks: `uv run ruff check`
15+
- Check code formatting: `uv run ruff format --check`
16+
- Run tests: `uv run pytest -v`
1717

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ A script exists to set up the Workspace (Free Edition) as described in the [Setu
5151

5252
Sync `uv` environment with `dev` (includes databricks-connect) dependencies:
5353
```bash
54-
uv sync --locked
54+
uv sync --locked --group dev
5555
```
5656

57-
> **Note:** For local Spark use `uv sync --group dev-spark --no-dev` instead.
57+
> **Note:** For local Spark use `uv sync --locked --group dev-spark` instead.
5858
5959
#### (Optional) Activate virtual environment
6060

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ dab-project = "dab_project.cli:main"
5757
[[tool.mypy.overrides]]
5858
ignore_missing_imports = true
5959

60+
[tool.uv]
61+
# disable 'dev' as default group as we have 'dev' and 'dev-spark' environments
62+
default-groups = []
63+
6064
[tool.ruff]
6165
line-length = 100
6266
include = [

0 commit comments

Comments
 (0)