Skip to content

Commit 729f84c

Browse files
chore: update pre-commit hooks (#554)
* chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.2...v0.6.1) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1352786 commit 729f84c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default_language_version:
77
python: python3
88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: 'v0.5.2'
10+
rev: 'v0.6.1'
1111
hooks:
1212
- id: ruff
1313
args: ["--fix", "--show-fixes"]

notebooks/benchmark_vlen.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"source": [
2727
"import numpy as np\n",
2828
"import numcodecs\n",
29+
"\n",
2930
"numcodecs.__version__"
3031
]
3132
},
@@ -67,6 +68,7 @@
6768
"outputs": [],
6869
"source": [
6970
"from numcodecs.tests.common import greetings\n",
71+
"\n",
7072
"msgpack_codec = numcodecs.MsgPack()\n",
7173
"json_codec = numcodecs.JSON()\n",
7274
"pickle_codec = numcodecs.Pickle()\n",
@@ -281,6 +283,7 @@
281283
"outputs": [],
282284
"source": [
283285
"from faker import Faker\n",
286+
"\n",
284287
"fake = Faker()"
285288
]
286289
},
@@ -554,8 +557,10 @@
554557
],
555558
"source": [
556559
"np.random.seed(42)\n",
557-
"data4 = np.array([np.random.randint(0, 100, size=np.random.randint(0, 20)).astype('i4')\n",
558-
" for i in range(100000)], dtype=object)\n",
560+
"data4 = np.array(\n",
561+
" [np.random.randint(0, 100, size=np.random.randint(0, 20)).astype('i4') for i in range(100000)],\n",
562+
" dtype=object,\n",
563+
")\n",
559564
"data4"
560565
]
561566
},

0 commit comments

Comments
 (0)