Skip to content

Commit 7869b5b

Browse files
authored
Merge pull request #185 from AFM-SPM/pre-commit-ci-update-config
[pre-commit.ci] pre-commit-autoupdate
2 parents 062b984 + 00b6d2d commit 7869b5b

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ repos:
3333

3434
- repo: https://github.com/astral-sh/ruff-pre-commit
3535
# Ruff version.
36-
rev: v0.14.10
36+
rev: v0.14.14
3737
hooks:
3838
- id: ruff
3939
args: [ --fix, --exit-non-zero-on-fix ]
4040

4141
- repo: https://github.com/psf/black-pre-commit-mirror
42-
rev: 25.12.0
42+
rev: 26.1.0
4343
hooks:
4444
- id: black
4545
types: [python]
@@ -48,7 +48,7 @@ repos:
4848
- id: black-jupyter
4949

5050
- repo: https://github.com/kynan/nbstripout
51-
rev: 0.8.2
51+
rev: 0.9.0
5252
hooks:
5353
- id: nbstripout
5454

AFMReader/gwy.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ def load_gwy(file_path: Path | str, channel: str) -> tuple[np.ndarray[Any, np.fl
7575
image = image * 1e9
7676
px_to_nm = px_to_nm * 1e9
7777
else:
78-
raise ValueError(
79-
f"Units '{units}' have not been added for .gwy files. Please add \
78+
raise ValueError(f"Units '{units}' have not been added for .gwy files. Please add \
8079
an SI to nanometre conversion factor for these units in _gwy_read_component in \
81-
io.py."
82-
)
80+
io.py.")
8381

8482
except FileNotFoundError:
8583
logger.info(f"[{filename}] File not found : {file_path}")

AFMReader/jpk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _load_jpk_tags(config_path: str | Path | None = None) -> dict[str, int]:
269269
Dictionary of JPK configuration options.
270270
"""
271271
if config_path is None:
272-
config_path = resources.files(__package__) / "default_config.yaml" # type:ignore[assignment]
273-
config = read_yaml(Path(config_path)) # type:ignore[arg-type]
272+
config_path = resources.files(__package__) / "default_config.yaml" # type: ignore[assignment]
273+
config = read_yaml(Path(config_path)) # type: ignore[arg-type]
274274
logger.info(f"Configuration loaded from : {config_path}")
275275
return config["jpk"]

0 commit comments

Comments
 (0)