Skip to content

Commit 87bf0e1

Browse files
committed
Merge branch 'main' into multi-file-widget
2 parents 8b11f91 + 80eea76 commit 87bf0e1

36 files changed

+586
-118
lines changed

.copier-answers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: bd9d844
2+
_commit: aa5dc5e
33
_src_path: gh:scipp/copier_template
44
description: Common data reduction tools for the ESS facility
5-
max_python: '3.12'
5+
max_python: '3.13'
66
min_python: '3.10'
77
namespace_package: ess
8-
nightly_deps: scippnexus,scipp,sciline,cyclebane
8+
nightly_deps: scippnexus,scipp,sciline,cyclebane,scippneutron
99
orgname: scipp
1010
prettyname: ESSreduce
1111
projectname: essreduce

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
formatting:
1212
name: Formatting and static analysis
13-
runs-on: 'ubuntu-22.04'
13+
runs-on: 'ubuntu-24.04'
1414
outputs:
1515
min_python: ${{ steps.vars.outputs.min_python }}
1616
min_tox_env: ${{ steps.vars.outputs.min_tox_env }}
@@ -19,15 +19,15 @@ jobs:
1919
- name: Get Python version for other CI jobs
2020
id: vars
2121
run: |
22-
echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT
23-
echo "min_tox_env=py$(cat .github/workflows/python-version-ci | sed 's/\.//g')" >> $GITHUB_OUTPUT
22+
echo "min_python=$(< .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
23+
echo "min_tox_env=py$(sed 's/\.//g' < .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
2424
- uses: actions/setup-python@v5
2525
with:
2626
python-version-file: '.github/workflows/python-version-ci'
2727
- uses: pre-commit/[email protected]
2828
with:
2929
extra_args: --all-files
30-
- uses: pre-commit-ci/lite-action@v1.0.2
30+
- uses: pre-commit-ci/lite-action@v1.1.0
3131
if: always()
3232
with:
3333
msg: Apply automatic formatting
@@ -37,7 +37,7 @@ jobs:
3737
needs: formatting
3838
strategy:
3939
matrix:
40-
os: ['ubuntu-22.04']
40+
os: ['ubuntu-24.04']
4141
python:
4242
- version: '${{needs.formatting.outputs.min_python}}'
4343
tox-env: '${{needs.formatting.outputs.min_tox_env}}'
@@ -53,6 +53,6 @@ jobs:
5353
uses: ./.github/workflows/docs.yml
5454
with:
5555
publish: false
56-
linkcheck: ${{ contains(matrix.variant.os, 'ubuntu') && github.ref == 'refs/heads/main' }}
56+
linkcheck: ${{ github.ref == 'refs/heads/main' }}
5757
branch: ${{ github.head_ref == '' && github.ref_name || github.head_ref }}
5858
secrets: inherit

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ env:
4141
jobs:
4242
docs:
4343
name: Build documentation
44-
runs-on: 'ubuntu-22.04'
44+
runs-on: 'ubuntu-24.04'
4545
env:
4646
ESS_PROTECTED_FILESTORE_USERNAME: ${{ secrets.ESS_PROTECTED_FILESTORE_USERNAME }}
4747
ESS_PROTECTED_FILESTORE_PASSWORD: ${{ secrets.ESS_PROTECTED_FILESTORE_PASSWORD }}
@@ -58,7 +58,7 @@ jobs:
5858
python-version-file: '.github/workflows/python-version-ci'
5959
- run: python -m pip install --upgrade pip
6060
- run: python -m pip install -r requirements/ci.txt
61-
- run: tox -e releasedocs -- ${VERSION}
61+
- run: tox -e releasedocs -- "${VERSION}"
6262
if: ${{ inputs.version != '' }}
6363
- run: tox -e docs
6464
if: ${{ inputs.version == '' }}
@@ -69,7 +69,7 @@ jobs:
6969
name: docs_html
7070
path: html/
7171

72-
- uses: JamesIves/[email protected].3
72+
- uses: JamesIves/[email protected].9
7373
if: ${{ inputs.publish }}
7474
with:
7575
branch: gh-pages

.github/workflows/nightly_at_main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ on:
88
jobs:
99
setup:
1010
name: Setup variables
11-
runs-on: 'ubuntu-22.04'
11+
runs-on: 'ubuntu-24.04'
1212
outputs:
1313
min_python: ${{ steps.vars.outputs.min_python }}
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Get Python version for other CI jobs
1717
id: vars
18-
run: echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT
18+
run: echo "min_python=$(< .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
1919

2020
tests:
2121
name: Tests
2222
needs: setup
2323
strategy:
2424
matrix:
25-
os: ['ubuntu-22.04']
25+
os: ['ubuntu-24.04']
2626
python:
2727
- version: '${{needs.setup.outputs.min_python}}'
2828
tox-env: 'nightly'

.github/workflows/nightly_at_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
setup:
1010
name: Setup variables
11-
runs-on: 'ubuntu-22.04'
11+
runs-on: 'ubuntu-24.04'
1212
outputs:
1313
min_python: ${{ steps.vars.outputs.min_python }}
1414
release_tag: ${{ steps.release.outputs.release_tag }}
@@ -18,17 +18,17 @@ jobs:
1818
fetch-depth: 0 # history required so we can determine latest release tag
1919
- name: Get last release tag from git
2020
id: release
21-
run: echo "release_tag=$(git describe --tags --abbrev=0 --match '[0-9]*.[0-9]*.[0-9]*')" >> $GITHUB_OUTPUT
21+
run: echo "release_tag=$(git describe --tags --abbrev=0 --match '[0-9]*.[0-9]*.[0-9]*')" >> "$GITHUB_OUTPUT"
2222
- name: Get Python version for other CI jobs
2323
id: vars
24-
run: echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT
24+
run: echo "min_python=$(cat .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
2525

2626
tests:
2727
name: Tests
2828
needs: setup
2929
strategy:
3030
matrix:
31-
os: ['ubuntu-22.04']
31+
os: ['ubuntu-24.04']
3232
python:
3333
- version: '${{needs.setup.outputs.min_python}}'
3434
tox-env: 'nightly'

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defaults:
1212
jobs:
1313
build_conda:
1414
name: Conda build
15-
runs-on: 'ubuntu-22.04'
15+
runs-on: 'ubuntu-24.04'
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -35,7 +35,7 @@ jobs:
3535

3636
build_wheels:
3737
name: Wheels
38-
runs-on: 'ubuntu-22.04'
38+
runs-on: 'ubuntu-24.04'
3939

4040
steps:
4141
- uses: actions/checkout@v4
@@ -61,7 +61,7 @@ jobs:
6161
upload_pypi:
6262
name: Deploy PyPI
6363
needs: [build_wheels, build_conda]
64-
runs-on: 'ubuntu-22.04'
64+
runs-on: 'ubuntu-24.04'
6565
environment: release
6666
permissions:
6767
id-token: write
@@ -73,7 +73,7 @@ jobs:
7373
upload_conda:
7474
name: Deploy Conda
7575
needs: [build_wheels, build_conda]
76-
runs-on: 'ubuntu-22.04'
76+
runs-on: 'ubuntu-24.04'
7777
if: github.event_name == 'release' && github.event.action == 'published'
7878

7979
steps:
@@ -97,7 +97,7 @@ jobs:
9797
assets:
9898
name: Upload docs
9999
needs: docs
100-
runs-on: 'ubuntu-22.04'
100+
runs-on: 'ubuntu-24.04'
101101
permissions:
102102
contents: write # This is needed so that the action can upload the asset
103103
steps:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
os-variant:
7-
default: 'ubuntu-22.04'
7+
default: 'ubuntu-24.04'
88
type: string
99
python-version:
1010
type: string
@@ -23,7 +23,7 @@ on:
2323
workflow_call:
2424
inputs:
2525
os-variant:
26-
default: 'ubuntu-22.04'
26+
default: 'ubuntu-24.04'
2727
type: string
2828
python-version:
2929
type: string

.github/workflows/unpinned.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
setup:
1010
name: Setup variables
11-
runs-on: 'ubuntu-22.04'
11+
runs-on: 'ubuntu-24.04'
1212
outputs:
1313
min_python: ${{ steps.vars.outputs.min_python }}
1414
release_tag: ${{ steps.release.outputs.release_tag }}
@@ -18,17 +18,17 @@ jobs:
1818
fetch-depth: 0 # history required so we can determine latest release tag
1919
- name: Get last release tag from git
2020
id: release
21-
run: echo "release_tag=$(git describe --tags --abbrev=0 --match '[0-9]*.[0-9]*.[0-9]*')" >> $GITHUB_OUTPUT
21+
run: echo "release_tag=$(git describe --tags --abbrev=0 --match '[0-9]*.[0-9]*.[0-9]*')" >> "$GITHUB_OUTPUT"
2222
- name: Get Python version for other CI jobs
2323
id: vars
24-
run: echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT
24+
run: echo "min_python=$(cat .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
2525

2626
tests:
2727
name: Tests
2828
needs: setup
2929
strategy:
3030
matrix:
31-
os: ['ubuntu-22.04']
31+
os: ['ubuntu-24.04']
3232
python:
3333
- version: '${{needs.setup.outputs.min_python}}'
3434
tox-env: 'unpinned'

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ dist
44
html
55
.tox
66
*.egg-info
7+
uv.lock # we lock dependencies with pip-compile, not uv
78

89
*.sw?
910

1011
# Environments
1112
venv
13+
.venv
1214

1315
# Caches
1416
.clangd/
@@ -39,3 +41,6 @@ docs/generated/
3941
*.cif
4042
*.rcif
4143
*.ort
44+
*.zip
45+
*.sqw
46+
*.nxspe

.pre-commit-config.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-illegal-windows-names
68
- id: check-json
79
exclude: asv.conf.json
810
- id: check-merge-conflict
@@ -14,22 +16,22 @@ repos:
1416
args: [ --markdown-linebreak-ext=md ]
1517
exclude: '\.svg'
1618
- repo: https://github.com/kynan/nbstripout
17-
rev: 0.6.0
19+
rev: 0.7.1
1820
hooks:
1921
- id: nbstripout
2022
types: [ "jupyter" ]
2123
args: [ "--drop-empty-cells",
2224
"--extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm'" ]
2325
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.4.3
26+
rev: v0.6.9
2527
hooks:
2628
- id: ruff
2729
args: [ --fix ]
2830
types_or: [ python, pyi, jupyter ]
2931
- id: ruff-format
3032
types_or: [ python, pyi ]
3133
- repo: https://github.com/codespell-project/codespell
32-
rev: v2.2.6
34+
rev: v2.3.0
3335
hooks:
3436
- id: codespell
3537
additional_dependencies:
@@ -44,3 +46,9 @@ repos:
4446
- id: rst-directive-colons
4547
- id: rst-inline-touching-normal
4648
- id: text-unicode-replacement-char
49+
- repo: https://github.com/rhysd/actionlint
50+
rev: v1.7.3
51+
hooks:
52+
- id: actionlint
53+
# Disable because of false-positive SC2046
54+
args: ["-shellcheck="]

0 commit comments

Comments
 (0)