Skip to content

Commit 266785c

Browse files
authored
Merge pull request #91 from scipp/update-dependencies
Update dependencies
2 parents df33892 + 0d54082 commit 266785c

40 files changed

+252
-198
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 86a1e5c
2+
_commit: 75b9a8f
33
_src_path: gh:scipp/copier_template
44
description: Diffraction data reduction for the European Spallation Source
55
max_python: '3.12'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: pre-commit/[email protected]
2828
with:
2929
extra_args: --all-files
30-
- uses: pre-commit-ci/[email protected].2
30+
- uses: pre-commit-ci/[email protected].3
3131
if: always()
3232
with:
3333
msg: Apply automatic formatting

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
name: docs_html
7070
path: html/
7171

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

.gitignore

Lines changed: 3 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,4 @@ docs/generated/
3941
*.cif
4042
*.rcif
4143
*.ort
44+
*.zip

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-json
@@ -14,22 +14,22 @@ repos:
1414
args: [ --markdown-linebreak-ext=md ]
1515
exclude: '\.svg'
1616
- repo: https://github.com/kynan/nbstripout
17-
rev: 0.6.0
17+
rev: 0.7.1
1818
hooks:
1919
- id: nbstripout
2020
types: [ "jupyter" ]
2121
args: [ "--drop-empty-cells",
2222
"--extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm'" ]
2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.4.3
24+
rev: v0.6.2
2525
hooks:
2626
- id: ruff
2727
args: [ --fix ]
2828
types_or: [ python, pyi, jupyter ]
2929
- id: ruff-format
3030
types_or: [ python, pyi ]
3131
- repo: https://github.com/codespell-project/codespell
32-
rev: v2.2.6
32+
rev: v2.3.0
3333
hooks:
3434
- id: codespell
3535
additional_dependencies:

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10

conda/meta.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ source:
99

1010
{% set pyproject = load_file_data('pyproject.toml') %}
1111
{% set dependencies = pyproject.get('project', {}).get('dependencies', {}) %}
12+
{% set test_dependencies = pyproject.get('project', {}).get('optional-dependencies', {}).get('test', {}) %}
1213

1314

1415
requirements:
@@ -28,7 +29,13 @@ test:
2829
imports:
2930
- ess.diffraction
3031
requires:
31-
- pytest
32+
33+
{# Conda does not allow spaces between package name and version, so remove them #}
34+
{% for package in test_dependencies %}
35+
- {% if package == "graphviz" %}python-graphviz{% else %}{{ package|replace(" ", "") }}{% endif %}
36+
{% endfor %}
37+
38+
3239
source_files:
3340
- pyproject.toml
3441
- tests/

docs/api-reference/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
grouping
2828
smoothing
2929
types
30-
uncertainty
3130
```
3231

3332
## ESSdream

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
# Copyright (c) 2024 Scipp contributors (https://github.com/scipp)
3+
14
import doctest
25
import os
36
import sys

docs/user-guide/dream/dream-data-reduction.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "f47beab6-47c9-4cfb-a70e-c00bc8daebef",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"# DREAM data reduction\n",
@@ -15,7 +15,7 @@
1515
{
1616
"cell_type": "code",
1717
"execution_count": null,
18-
"id": "74b2df0c-6957-40c2-a48e-a4351547e87a",
18+
"id": "1",
1919
"metadata": {},
2020
"outputs": [],
2121
"source": [
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"cell_type": "markdown",
33-
"id": "dcaf1d53-2a81-4a31-8379-1fb3791aaeab",
33+
"id": "2",
3434
"metadata": {},
3535
"source": [
3636
"## Create and configure the workflow\n",
@@ -41,7 +41,7 @@
4141
{
4242
"cell_type": "code",
4343
"execution_count": null,
44-
"id": "b2d15f12-69d7-4c5d-9d4d-f1c13fc29103",
44+
"id": "3",
4545
"metadata": {},
4646
"outputs": [],
4747
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "1252feab-12d2-46ac-bf74-70b32344473d",
53+
"id": "4",
5454
"metadata": {},
5555
"source": [
5656
"We then need to set the missing parameters which are specific to each experiment\n",
@@ -60,7 +60,7 @@
6060
{
6161
"cell_type": "code",
6262
"execution_count": null,
63-
"id": "502e77cc-0253-4e71-9d97-81ff560ef99d",
63+
"id": "5",
6464
"metadata": {},
6565
"outputs": [],
6666
"source": [
@@ -85,7 +85,7 @@
8585
},
8686
{
8787
"cell_type": "markdown",
88-
"id": "21fb4492-e836-41d3-a2d4-9678df43b9f9",
88+
"id": "6",
8989
"metadata": {},
9090
"source": [
9191
"## Use the workflow\n",
@@ -96,7 +96,7 @@
9696
{
9797
"cell_type": "code",
9898
"execution_count": null,
99-
"id": "93f2ba0d-f256-4b64-b8fa-42cd1081cc41",
99+
"id": "7",
100100
"metadata": {},
101101
"outputs": [],
102102
"source": [
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"cell_type": "markdown",
108-
"id": "478f580e-273c-4a46-8dfc-9a2ed31b0cd3",
108+
"id": "8",
109109
"metadata": {},
110110
"source": [
111111
"We then call `compute()` to compute the result:"
@@ -114,7 +114,7 @@
114114
{
115115
"cell_type": "code",
116116
"execution_count": null,
117-
"id": "6a17cf1d-0407-41dd-8a84-0975371ac70a",
117+
"id": "9",
118118
"metadata": {},
119119
"outputs": [],
120120
"source": [
@@ -125,7 +125,7 @@
125125
{
126126
"cell_type": "code",
127127
"execution_count": null,
128-
"id": "527623d2-0eee-456d-a4dd-764df8618ee4",
128+
"id": "10",
129129
"metadata": {},
130130
"outputs": [],
131131
"source": [
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"cell_type": "markdown",
138-
"id": "39dc0ea3-b30d-4a88-878c-86cf0e8e76e9",
138+
"id": "11",
139139
"metadata": {},
140140
"source": [
141141
"We can now save the result to disk:"
@@ -144,7 +144,7 @@
144144
{
145145
"cell_type": "code",
146146
"execution_count": null,
147-
"id": "f37eba41-6178-4bcb-bf3c-fa177e6112b0",
147+
"id": "12",
148148
"metadata": {},
149149
"outputs": [],
150150
"source": [
@@ -156,7 +156,7 @@
156156
},
157157
{
158158
"cell_type": "markdown",
159-
"id": "0898265e-7edd-4093-9dfb-6e6b2f05c766",
159+
"id": "13",
160160
"metadata": {},
161161
"source": [
162162
"## Compute intermediate results\n",
@@ -169,7 +169,7 @@
169169
{
170170
"cell_type": "code",
171171
"execution_count": null,
172-
"id": "4bd5a7d5-581f-4d04-bf11-955e55646199",
172+
"id": "14",
173173
"metadata": {},
174174
"outputs": [],
175175
"source": [
@@ -186,7 +186,7 @@
186186
{
187187
"cell_type": "code",
188188
"execution_count": null,
189-
"id": "185cb6ee-8e55-43d0-9505-ebe2761785ed",
189+
"id": "15",
190190
"metadata": {},
191191
"outputs": [],
192192
"source": [
@@ -198,7 +198,7 @@
198198
},
199199
{
200200
"cell_type": "markdown",
201-
"id": "7f866ad4-5a0d-4c98-b5ab-a2436f97074d",
201+
"id": "16",
202202
"metadata": {},
203203
"source": [
204204
"## Grouping by scattering angle\n",
@@ -210,7 +210,7 @@
210210
{
211211
"cell_type": "code",
212212
"execution_count": null,
213-
"id": "bc516311-1ab4-4eb7-9a0b-d83ff61e036b",
213+
"id": "17",
214214
"metadata": {},
215215
"outputs": [],
216216
"source": [
@@ -222,7 +222,7 @@
222222
{
223223
"cell_type": "code",
224224
"execution_count": null,
225-
"id": "b19ab368-e0c4-4a03-ac20-61a442e8826e",
225+
"id": "18",
226226
"metadata": {},
227227
"outputs": [],
228228
"source": [
@@ -233,7 +233,7 @@
233233
{
234234
"cell_type": "code",
235235
"execution_count": null,
236-
"id": "fc25ee9c-9395-481f-bd31-3ad139859686",
236+
"id": "19",
237237
"metadata": {},
238238
"outputs": [],
239239
"source": [
@@ -251,7 +251,7 @@
251251
{
252252
"cell_type": "code",
253253
"execution_count": null,
254-
"id": "6e414419-ccf4-420b-899d-a1fa4a6ce4ca",
254+
"id": "20",
255255
"metadata": {},
256256
"outputs": [],
257257
"source": [

0 commit comments

Comments
 (0)