Skip to content

Commit ca7722f

Browse files
[pre-commit.ci] pre-commit autoupdate (#902)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ryan Ly <[email protected]>
1 parent b9047de commit ca7722f

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
@@ -18,7 +18,7 @@ repos:
1818
# hooks:
1919
# - id: black
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.0.276
21+
rev: v0.0.282
2222
hooks:
2323
- id: ruff
2424
# - repo: https://github.com/econchick/interrogate

src/hdmf/backends/hdf5/h5_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def filter_available(filter, allow_plugin_filters):
611611
if filter in h5py_filters.encode:
612612
return True
613613
elif allow_plugin_filters is True:
614-
if type(filter) == int:
614+
if isinstance(filter, int):
615615
if h5py_filters.h5z.filter_avail(filter):
616616
filter_info = h5py_filters.h5z.get_filter_info(filter)
617617
if filter_info == (h5py_filters.h5z.FILTER_CONFIG_DECODE_ENABLED +

0 commit comments

Comments
 (0)