Skip to content
Merged
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
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
".taplo.toml",
".vscode/*",
"docs/conf.py",
"pixi.toml",
"pyproject.toml"
],
"ignoreWords": [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

jobs:
doc:
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v2.1
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v3.0
permissions:
pages: write
id-token: write
Expand All @@ -36,4 +36,4 @@ jobs:
if: inputs.specific-pip-packages == ''
secrets:
token: ${{ secrets.PAT }}
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2.1
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v3.0
2 changes: 1 addition & 1 deletion .github/workflows/clean-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Remove caches
runs-on: ubuntu-24.04
steps:
- uses: ComPWA/actions/clean-caches@v2
- uses: ComPWA/actions/clean-caches@v3
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.ref }}
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ on:

jobs:
lock:
uses: ComPWA/actions/.github/workflows/lock.yml@v2
uses: ComPWA/actions/.github/workflows/lock.yml@v3
secrets:
token: ${{ secrets.PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v5
- uses: astral-sh/setup-uv@v6
- name: Install graphviz
run: sudo apt-get -y install graphviz
- name: Run all notebooks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ on:

jobs:
lint-pr:
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v2
uses: ComPWA/actions/.github/workflows/pr-linting.yml@v3
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ prof/

# Virtual environments
.pixi/
.tox/
*venv/
pyvenv*/

Expand Down
17 changes: 9 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ci:
autoupdate_commit_msg: "MAINT: update lock files"
autofix_commit_msg: "MAINT: implement pre-commit autofixes"
autoupdate_commit_msg: "MAINT: upgrade lock files"
autoupdate_schedule: quarterly
skip:
- pyright
Expand All @@ -12,7 +13,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.6.1
rev: 0.7.0
hooks:
- id: check-dev-files
args:
Expand Down Expand Up @@ -76,7 +77,7 @@ repos:
)$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
rev: v0.12.8
hooks:
- id: ruff
args: [--fix]
Expand All @@ -85,7 +86,7 @@ repos:
types_or: [python, pyi, jupyter]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand Down Expand Up @@ -122,12 +123,12 @@ repos:
exclude: (?x)^(.*/Manifest\.toml|.*/Project\.toml)$

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.17.1
rev: v9.2.0
hooks:
- id: cspell

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.2.0
rev: 3.2.1
hooks:
- id: editorconfig-checker
name: editorconfig
Expand All @@ -148,11 +149,11 @@ repos:
)$

- repo: https://github.com/ComPWA/pyright-pre-commit
rev: v1.1.392
rev: v1.1.403
hooks:
- id: pyright

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.25
rev: 0.8.8
hooks:
- id: uv-lock
7 changes: 1 addition & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ build:
export PIXI_HOME=$READTHEDOCS_VIRTUALENV_PATH
curl -fsSL https://pixi.sh/install.sh | bash
export UV_LINK_MODE=copy
pixi run \
uv run \
--group doc \
--no-dev \
--with tox-uv \
tox -e doc
pixi run doc
mkdir -p $READTHEDOCS_OUTPUT
mv docs/_build/html $READTHEDOCS_OUTPUT

Expand Down
4 changes: 2 additions & 2 deletions .taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ reorder_arrays = true
reorder_keys = true

[[rule]]
include = ["**/pyproject.toml"]
keys = ["tool.tox"]
include = ["**/pixi.toml"]
keys = ["tasks"]

[rule.formatting]
reorder_arrays = false
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ and [`pre-commit install`](https://pre-commit.com/#3-install-the-git-hook-script
pre-commit install --install-hooks
```

In addition, it may be handy to install `tox`:
Pixi is used as a [task runner](https://pixi.sh/latest/workspace/advanced_tasks). You can see which local CI checks it defines by running

```shell
uv tool install tox --with tox-uv
pixi task list
```

If the repository provides a Tox configuration under [`pyproject.toml`](./pyproject.toml), you can see which jobs it defines with:
For instance, all style checks can be run with

```shell
tox list
pixi run style
```
Loading