From e67df0a8dc80f5d11b3caa935185878fc7fd53fe Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Thu, 7 Nov 2024 13:38:49 +0100 Subject: [PATCH] MAINT: update dev environment --- .binder/postBuild | 1 + .github/workflows/ci.yml | 6 +++--- .pre-commit-config.yaml | 1 + CONTRIBUTING.md | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.binder/postBuild b/.binder/postBuild index 0a5a2b2..00acf5d 100755 --- a/.binder/postBuild +++ b/.binder/postBuild @@ -4,6 +4,7 @@ curl -LsSf https://astral.sh/uv/install.sh | sh source $HOME/.cargo/env uv export \ --group jupyter \ + --no-dev \ > requirements.txt uv pip install \ --requirement requirements.txt \ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8eb6a1..6577534 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ on: jobs: doc: - uses: ComPWA/actions/.github/workflows/ci-docs.yml@v2 + uses: ComPWA/actions/.github/workflows/ci-docs.yml@v2.1 permissions: pages: write id-token: write @@ -36,7 +36,7 @@ jobs: gh-pages: true specific-pip-packages: ${{ inputs.specific-pip-packages }} pytest: - uses: ComPWA/actions/.github/workflows/pytest.yml@v2 + uses: ComPWA/actions/.github/workflows/pytest.yml@v2.1 with: coverage-target: pawian macos-python-version: "3.9" @@ -45,4 +45,4 @@ jobs: if: inputs.specific-pip-packages == '' secrets: token: ${{ secrets.PAT }} - uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2 + uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 07ebd84..032d5e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,7 @@ repos: - --repo-name=pawian-tools - --repo-organization=RUB-EP1 - --repo-title=Pawian Tools + - --update-lock-files=outsource - id: remove-empty-tags - repo: https://github.com/kynan/nbstripout diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6c71942..399ab3d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ cd pawian-tools Now it's simply a matter of creating and activating the [virtual environment](https://docs.astral.sh/uv/pip/environments) with [`uv sync`](https://docs.astral.sh/uv/reference/cli/#uv-sync). The dependencies for the project are 'pinned' in each commit through the [`uv.lock` file](https://docs.astral.sh/uv/concepts/projects/#project-lockfile). ```shell -uv sync +uv sync --all-extras source .venv/bin/activate ```