Skip to content

Commit 3f439e2

Browse files
[pre-commit.ci] pre-commit autoupdate (#336)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.11.0](astral-sh/ruff-pre-commit@v0.9.10...v0.11.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a349377 commit 3f439e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.9.10
3+
rev: v0.11.0
44
hooks:
55
- id: ruff
66
name: ruff lint

structuretoolkit/analyse/neighbors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _set_mode(self, new_mode: str) -> None:
107107
raise KeyError(
108108
f"{new_mode} not found. Available modes: {', '.join(self._mode.keys())}"
109109
)
110-
self._mode = {key: False for key in self._mode}
110+
self._mode = dict.fromkeys(self._mode, False)
111111
self._mode[new_mode] = True
112112

113113
def __repr__(self) -> str:

0 commit comments

Comments
 (0)