From 50589e3786e9756fedcbca2bcde0ee6a7fc32dde Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:34:08 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.6.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.2...v0.6.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 898a4b4c..57707abd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.5.2' + rev: 'v0.6.1' hooks: - id: ruff args: ["--fix", "--show-fixes"] From 5fdedc4b15c99b5419b8e46244bd9b5e0e661beb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:00:37 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- notebooks/benchmark_vlen.ipynb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/notebooks/benchmark_vlen.ipynb b/notebooks/benchmark_vlen.ipynb index 80b5dc0a..d85c1520 100644 --- a/notebooks/benchmark_vlen.ipynb +++ b/notebooks/benchmark_vlen.ipynb @@ -26,6 +26,7 @@ "source": [ "import numpy as np\n", "import numcodecs\n", + "\n", "numcodecs.__version__" ] }, @@ -67,6 +68,7 @@ "outputs": [], "source": [ "from numcodecs.tests.common import greetings\n", + "\n", "msgpack_codec = numcodecs.MsgPack()\n", "json_codec = numcodecs.JSON()\n", "pickle_codec = numcodecs.Pickle()\n", @@ -281,6 +283,7 @@ "outputs": [], "source": [ "from faker import Faker\n", + "\n", "fake = Faker()" ] }, @@ -554,8 +557,10 @@ ], "source": [ "np.random.seed(42)\n", - "data4 = np.array([np.random.randint(0, 100, size=np.random.randint(0, 20)).astype('i4')\n", - " for i in range(100000)], dtype=object)\n", + "data4 = np.array(\n", + " [np.random.randint(0, 100, size=np.random.randint(0, 20)).astype('i4') for i in range(100000)],\n", + " dtype=object,\n", + ")\n", "data4" ] },