Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
9 changes: 7 additions & 2 deletions notebooks/benchmark_vlen.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"source": [
"import numpy as np\n",
"import numcodecs\n",
"\n",
"numcodecs.__version__"
]
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -281,6 +283,7 @@
"outputs": [],
"source": [
"from faker import Faker\n",
"\n",
"fake = Faker()"
]
},
Expand Down Expand Up @@ -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"
]
},
Expand Down