Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Dec 9, 2024
1 parent 182d545 commit 7ed9eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ndcube/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def __getitem__(self, item):
# Slice metadata value.
try:
new_value = value[new_item]
except Exception:
except Exception: # noqa: BLE001
# If value cannot be sliced by fancy slicing, convert it
# it to an array, slice it, and then if necessary, convert
# it back to its original type.
Expand Down
2 changes: 1 addition & 1 deletion ndcube/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def assert_metas_equal(test_input, expected_output):
for test_value, expected_value in zip(test_input.values(), expected_output.values()):
try:
assert test_value == expected_value
except ValueError as err:
except ValueError as err: # noqa: PERF203
if multi_element_msg in err.args[0]:
assert np.allclose(test_value, expected_value)
for key in test_input.axes.keys():
Expand Down

0 comments on commit 7ed9eb0

Please sign in to comment.