Skip to content

Commit 145015f

Browse files
Apply repo-review rule PC100
PC100: Has pre-commit-hooks Must have https://github.com/pre-commit/pre-commit-hooks repo in .pre-commit-config.yaml
1 parent 636ff5c commit 145015f

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
exclude: ^fixture/ # files with trailing whitespaces on purpose
12
ci:
23
autoupdate_commit_msg: "chore: update pre-commit hooks"
34
autofix_commit_msg: "style: pre-commit fixes"
@@ -6,8 +7,15 @@ default_stages: [commit, push]
67
default_language_version:
78
python: python3
89
repos:
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v4.6.0
12+
hooks:
13+
- id: trailing-whitespace
14+
- id: check-yaml
15+
- id: debug-statements
16+
917
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: 'v0.6.7'
18+
rev: v0.6.7
1119
hooks:
1220
- id: ruff
1321
args: ["--fix", "--show-fixes"]

.pyup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# autogenerated pyup.io config file
1+
# autogenerated pyup.io config file
22
# see https://pyup.io/docs/configuration/ for all available options
33

44
schedule: every month

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Numcodecs
22
=========
33

4-
Numcodecs is a Python package providing buffer compression and transformation
4+
Numcodecs is a Python package providing buffer compression and transformation
55
codecs for use in data storage and communication applications.
66

77
.. image:: https://readthedocs.org/projects/numcodecs/badge/?version=latest

numcodecs/blosc.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def decompress_partial(source, start, nitems, dest=None):
468468
raise RuntimeError('error during blosc partial decompression: %d', ret)
469469

470470
return dest
471-
471+
472472

473473
# set the value of this variable to True or False to override the
474474
# default adaptive behaviour

numcodecs/jenkins.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ cpdef uint32_t jenkins_lookup3(const uint8_t[::1] _data, uint32_t initval=0):
168168
if length == 12:
169169
c += (<uint32_t>k[11]) << 24
170170
length -= 1
171-
171+
172172
if length == 11:
173173
c += (<uint32_t>k[10]) << 16
174174
length -= 1
@@ -231,7 +231,7 @@ cdef inline uint32_t _jenkins_lookup3_final(uint32_t a, uint32_t b, uint32_t c):
231231
the output delta to a Gray code (a^(a>>1)) so a string of 1's (as
232232
is commonly produced by subtraction) look like a single 1-bit
233233
difference.
234-
* the base values were pseudorandom, all zero but one bit set, or
234+
* the base values were pseudorandom, all zero but one bit set, or
235235
all zero plus a counter that starts at zero.
236236
237237
These constants passed:
@@ -279,7 +279,7 @@ cdef inline (uint32_t, uint32_t, uint32_t) _jenkins_lookup3_mix(uint32_t a, uint
279279
the output delta to a Gray code (a^(a>>1)) so a string of 1's (as
280280
is commonly produced by subtraction) look like a single 1-bit
281281
difference.
282-
* the base values were pseudorandom, all zero but one bit set, or
282+
* the base values were pseudorandom, all zero but one bit set, or
283283
all zero plus a counter that starts at zero.
284284
285285
Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that
@@ -289,7 +289,7 @@ cdef inline (uint32_t, uint32_t, uint32_t) _jenkins_lookup3_mix(uint32_t a, uint
289289
14 9 3 7 17 3
290290
Well, "9 15 3 18 27 15" didn't quite get 32 bits diffing
291291
for "differ" defined as + with a one-bit base and a two-bit delta. I
292-
used http://burtleburtle.net/bob/hash/avalanche.html to choose
292+
used http://burtleburtle.net/bob/hash/avalanche.html to choose
293293
the operations, constants, and arrangements of the variables.
294294
295295
This does not achieve avalanche. There are input bits of (a,b,c)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ msgpack = [
6565
]
6666
zfpy = [
6767
"zfpy>=1.0.0",
68-
"numpy<2.0.0",
68+
"numpy<2.0.0",
6969
]
7070
pcodec = [
7171
"pcodec>=0.2.0",

0 commit comments

Comments
 (0)