Skip to content

Commit

Permalink
Merge pull request #1 from openclimatefix/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
jacobbieker authored Apr 4, 2023
2 parents abc4c51 + c973095 commit 4d7b563
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
call-run-python-release:
uses: openclimatefix/.github/.github/workflows/python-release.yml@main
secrets:
token: ${{ secrets.PYPI_API_TOKEN }}
token: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ repos:
# python code formatting/linting
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.253"
rev: "v0.0.260"
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 23.3.0
hooks:
- id: black
args: [--line-length, "100"]
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v3.0.0-alpha.6
hooks:
- id: prettier
types: [yaml]
8 changes: 4 additions & 4 deletions ocf_blosc2/ocf_blosc2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from numcodecs.registry import register_codec
import blosc2
from numcodecs.abc import Codec
from numcodecs.compat import ensure_contiguous_ndarray
import blosc2
from numcodecs.registry import register_codec


class Blosc2(Codec):
Expand All @@ -14,7 +14,8 @@ class Blosc2(Codec):
'zstd', 'blosc2'
clevel : integer, optional
An integer between 0 and 9 specifying the compression level.
See Also
See Also:
--------
numcodecs.zstd.Zstd, numcodecs.lz4.LZ4
"""
Expand Down Expand Up @@ -48,4 +49,3 @@ def __repr__(self):


register_codec(Blosc2)

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
numcodecs
blosc2
blosc2

0 comments on commit 4d7b563

Please sign in to comment.