Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#35)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.7.1](astral-sh/ruff-pre-commit@v0.7.0...v0.7.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update .pre-commit-config.yaml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: je-cook <81617086+je-cook@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and je-cook authored Nov 4, 2024
1 parent f9fefdf commit 519c292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
exclude: test_data

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.7.2
hooks:
- id: ruff
args: [--fix]
Expand Down
6 changes: 2 additions & 4 deletions eqdsk/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,7 @@ def update(self, eqdsk_data: dict[str, Any]):
setattr(self, key, value)
else:
raise ValueError(
"Cannot update EQDSKInterface from dict. "
f"Unrecognised key '{key}'.",
f"Cannot update EQDSKInterface from dict. Unrecognised key '{key}'.",
)


Expand Down Expand Up @@ -540,8 +539,7 @@ def _read_eqdsk(file_path: Path) -> dict: # noqa: PLR0915
ints = [v for v in description if is_num(v)]
if len(ints) < 3: # noqa: PLR2004
raise OSError(
"Should be at least 3 numbers in the first line "
f"of the EQDSK {file}.",
f"Should be at least 3 numbers in the first line of the EQDSK {file}.",
)

data = {}
Expand Down

0 comments on commit 519c292

Please sign in to comment.