Skip to content

Commit

Permalink
Bump ruff to v0.0.253 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw authored Feb 27, 2023
1 parent a3dbf9b commit 6de1fd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ repos:
additional_dependencies: [tomli]
files: ^(graphblas_algorithms|docs)/
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.252
rev: v0.0.253
hooks:
- id: ruff
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
16 changes: 8 additions & 8 deletions graphblas_algorithms/classes/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ def get_iso_value(G, mask=None):
cache["iso_value"] = A.ss.iso_value
else:
cache["iso_value"]

# min_val, max_val = G.get_properties('min_element+ max_element+')
# SuiteSparse:GraphBLAS
elif A.ss.is_iso:
cache["iso_value"] = A.ss.iso_value
cache["is_iso"] = True
else:
# min_val, max_val = G.get_properties('min_element+ max_element+')
# SuiteSparse:GraphBLAS
if A.ss.is_iso:
cache["iso_value"] = A.ss.iso_value
cache["is_iso"] = True
else:
cache["iso_value"] = None
cache["is_iso"] = False
cache["iso_value"] = None
cache["is_iso"] = False
return cache["iso_value"]


Expand Down

0 comments on commit 6de1fd6

Please sign in to comment.