Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
files: "giddy\/"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.6"
rev: "v0.14.7"
hooks:
- id: ruff
- id: ruff-check
- id: ruff-format

ci:
Expand Down
2 changes: 1 addition & 1 deletion giddy/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def is_component(w, ids):
"""

components = 0
marks = {node: 0 for node in ids}
marks = dict.fromkeys(ids, 0)
q = []
for node in ids:
if marks[node] == 0:
Expand Down
2 changes: 1 addition & 1 deletion giddy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def fill_empty_diagonals(p):
return _fill_empty_diagonal_2d(p_temp)
else:
raise NotImplementedError(
"Filling empty diagonals is " "only implemented for 2/3d matrices."
"Filling empty diagonals is only implemented for 2/3d matrices."
)


Expand Down
Loading