Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse",
"commit": "af5404e37dd5144a952d2262665d5b78192d1da7",
"commit": "8b6da4113b464cd9db00890310b6528e1c30623a",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"trim_blocks": true
},
"_template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse",
"_commit": "af5404e37dd5144a952d2262665d5b78192d1da7"
"_commit": "8b6da4113b464cd9db00890310b6528e1c30623a"
}
},
"directory": null
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
filter: blob:none
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
filter: blob:none
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
outputs:
envs: ${{ steps.get-envs.outputs.envs }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
filter: blob:none
fetch-depth: 0
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
continue-on-error: ${{ contains(matrix.env.name, 'pre') }} # make "all-green" pass even if pre-release job fails

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
filter: blob:none
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.11
rev: v0.14.13
hooks:
- id: ruff-check
types_or: [python, pyi, jupyter]
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"sphinxcontrib.bibtex",
"sphinxcontrib.katex",
"sphinx_autodoc_typehints",
"sphinx_tabs.tabs",
"sphinx_design",
"IPython.sphinxext.ipython_console_highlighting",
"sphinxext.opengraph",
*[p.stem for p in (HERE / "extensions").glob("*.py")],
Expand Down
33 changes: 21 additions & 12 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ it is still possible to use different tools to manage dependencies, such as `uv`
In addition to the packages needed to _use_ this package,
you need additional python packages to [run tests](#writing-tests) and [build the documentation](#docs-building).

:::::{tabs}
::::{group-tab} Hatch
:::::{tab-set}
::::{tab-item} Hatch
:sync: hatch

On the command line, you typically interact with hatch through its command line interface (CLI).
Running one of the following commands will automatically resolve the environments for testing and
Expand Down Expand Up @@ -94,7 +95,8 @@ In this future, this may become easier through a hatch vscode extension.

::::

::::{group-tab} uv
::::{tab-item} uv
:sync: uv

A popular choice for managing virtual environments is [uv][].
The main disadvantage compared to hatch is that it supports only a single environment per project at a time,
Expand All @@ -113,7 +115,8 @@ The `.venv` directory is typically automatically discovered by IDEs such as VS C

::::

::::{group-tab} Pip
::::{tab-item} Pip
:sync: pip

Pip is nowadays mostly superseded by environment manager such as [hatch][].
However, for the sake of completeness, and since it’s ubiquitously available,
Expand Down Expand Up @@ -185,8 +188,9 @@ hatch env find hatch-test # list all possible test environment paths

Alternatively, you can run all tests from the command line by executing

:::::{tabs}
::::{group-tab} Hatch
:::::{tab-set}
::::{tab-item} Hatch
:sync: hatch

```bash
hatch test # test with the highest supported Python version
Expand All @@ -196,15 +200,17 @@ hatch test --all # test with all supported Python versions

::::

::::{group-tab} uv
::::{tab-item} uv
:sync: uv

```bash
uv run pytest
```

::::

::::{group-tab} Pip
::::{tab-item} Pip
:sync: pip

```bash
source .venv/bin/activate
Expand Down Expand Up @@ -298,8 +304,9 @@ please check out [this feature request][issue-render-notebooks] in the `cookiecu

### Building the docs locally

:::::{tabs}
::::{group-tab} Hatch
:::::{tab-set}
::::{tab-item} Hatch
:sync: hatch

```bash
hatch run docs:build
Expand All @@ -308,7 +315,8 @@ hatch run docs:open

::::

::::{group-tab} uv
::::{tab-item} uv
:sync: uv

```bash
cd docs
Expand All @@ -318,7 +326,8 @@ uv run sphinx-build -M html . _build -W

::::

::::{group-tab} Pip
::::{tab-item} Pip
:sync: pip

```bash
source .venv/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ doc = [
"sphinx-autodoc-typehints",
"sphinx-book-theme>=1",
"sphinx-copybutton",
"sphinx-tabs",
"sphinx-design",
"sphinxcontrib-bibtex>=1",
"sphinxcontrib-katex",
"sphinxext-opengraph",
Expand Down