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] 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