From 594ec4da9a239b74c11710ccddcb6ccefb331ece Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:48:37 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.260 → v0.5.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.260...v0.5.5) - [github.com/psf/black: 23.3.0 → 24.4.2](https://github.com/psf/black/compare/23.3.0...24.4.2) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.6 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.6...v4.0.0-alpha.8) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e92053a..d72638f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: # list of supported hooks: https://pre-commit.com/hooks.html - id: trailing-whitespace @@ -12,20 +12,20 @@ repos: - id: detect-private-key # python code formatting/linting - - repo: https://github.com/charliermarsh/ruff-pre-commit + - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.0.260" + rev: "v0.5.5" hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.4.2 hooks: - id: black args: [--line-length, "100"] # yaml formatting - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.6 + rev: v4.0.0-alpha.8 hooks: - id: prettier types: [yaml] From 8084725dcd9803505a5ba496c18ee042b7b86ee0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:49:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ocf_blosc2/__init__.py | 1 + ocf_blosc2/ocf_blosc2.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ocf_blosc2/__init__.py b/ocf_blosc2/__init__.py index 116858a..5389e2f 100644 --- a/ocf_blosc2/__init__.py +++ b/ocf_blosc2/__init__.py @@ -1,2 +1,3 @@ """ Main init file """ + from .ocf_blosc2 import Blosc2 diff --git a/ocf_blosc2/ocf_blosc2.py b/ocf_blosc2/ocf_blosc2.py index a5df300..61396ee 100644 --- a/ocf_blosc2/ocf_blosc2.py +++ b/ocf_blosc2/ocf_blosc2.py @@ -1,4 +1,5 @@ """ Main code file """ + import blosc2 from numcodecs.abc import Codec from numcodecs.compat import ensure_contiguous_ndarray