Skip to content

Commit 55a7d9c

Browse files
committed
Copier update
1 parent 6f55919 commit 55a7d9c

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ repos:
1616
args: [ --markdown-linebreak-ext=md ]
1717
exclude: '\.svg'
1818
- repo: https://github.com/kynan/nbstripout
19-
rev: 0.7.1
19+
rev: 0.8.1
2020
hooks:
2121
- id: nbstripout
2222
types: [ "jupyter" ]
2323
args: [ "--drop-empty-cells",
2424
"--extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm'" ]
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.8.0
26+
rev: v0.11.8
2727
hooks:
2828
- id: ruff
2929
args: [ --fix ]
3030
types_or: [ python, pyi, jupyter ]
3131
- id: ruff-format
3232
types_or: [ python, pyi ]
3333
- repo: https://github.com/codespell-project/codespell
34-
rev: v2.3.0
34+
rev: v2.4.1
3535
hooks:
3636
- id: codespell
3737
additional_dependencies:
@@ -47,7 +47,7 @@ repos:
4747
- id: rst-inline-touching-normal
4848
- id: text-unicode-replacement-char
4949
- repo: https://github.com/rhysd/actionlint
50-
rev: v1.7.3
50+
rev: v1.7.7
5151
hooks:
5252
- id: actionlint
5353
# Disable because of false-positive SC2046

src/ess/offspec/conversions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ def coordinate_transformation_graph_sample() -> CoordTransformationGraph[SampleR
1616
}
1717

1818

19-
def coordinate_transformation_graph_reference() -> (
20-
CoordTransformationGraph[ReferenceRun]
21-
):
19+
def coordinate_transformation_graph_reference() -> CoordTransformationGraph[
20+
ReferenceRun
21+
]:
2222
return {
2323
**beamline.beamline(scatter=False),
2424
**tof.elastic_wavelength("tof"),

src/ess/reflectometry/tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ def linlogspace(
8484
num = [num]
8585
if len(scale) != len(edges) - 1:
8686
raise ValueError(
87-
"Sizes do not match. The length of edges should be one "
88-
"greater than scale."
87+
"Sizes do not match. The length of edges should be one greater than scale."
8988
)
9089

9190
funcs = {"linear": sc.linspace, "log": sc.geomspace}

0 commit comments

Comments
 (0)