From 076b974df845380b7cfe7f8d65146bd20ac43604 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 Jul 2024 20:28:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ocf_blosc2/ocf_blosc2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ocf_blosc2/ocf_blosc2.py b/ocf_blosc2/ocf_blosc2.py index 0e39fd7..a5df300 100644 --- a/ocf_blosc2/ocf_blosc2.py +++ b/ocf_blosc2/ocf_blosc2.py @@ -23,7 +23,7 @@ class Blosc2(Codec): codec_id = "blosc2" max_buffer_size = 2**31 - 1 - def __init__(self, cname="blosc2", clevel=5): # noqa + def __init__(self, cname="blosc2", clevel=5): # noqa self.cname = cname if cname == "zstd": self._codec = blosc2.Codec.ZSTD @@ -32,12 +32,12 @@ def __init__(self, cname="blosc2", clevel=5): # noqa self.clevel = clevel def encode(self, buf): - """ Encode method """ + """Encode method""" buf = ensure_contiguous_ndarray(buf, self.max_buffer_size) return blosc2.compress(buf, codec=self._codec, clevel=self.clevel) def decode(self, buf, out=None): - """ Decode method """ + """Decode method""" buf = ensure_contiguous_ndarray(buf, self.max_buffer_size) return blosc2.decompress(buf, out)