File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -6,27 +6,25 @@ default_stages: [commit, push]
6
6
default_language_version :
7
7
python : python3
8
8
repos :
9
- - repo : https://github.com/charliermarsh /ruff-pre-commit
9
+ - repo : https://github.com/astral-sh /ruff-pre-commit
10
10
# Ruff version.
11
- rev : ' v0.0.224 '
11
+ rev : ' v0.1.8 '
12
12
hooks :
13
13
- id : ruff
14
- # Respect `exclude` and `extend-exclude` settings.
15
- args : ["--force-exclude"]
16
14
- repo : https://github.com/psf/black
17
- rev : 23.10.1
15
+ rev : 23.12.0
18
16
hooks :
19
17
- id : black
20
18
- repo : https://github.com/codespell-project/codespell
21
- rev : v2.2.5
19
+ rev : v2.2.6
22
20
hooks :
23
21
- id : codespell
24
22
- repo : https://github.com/pre-commit/pre-commit-hooks
25
- rev : v4.4 .0
23
+ rev : v4.5 .0
26
24
hooks :
27
25
- id : check-yaml
28
26
- repo : https://github.com/pre-commit/mirrors-mypy
29
- rev : v1.3.0
27
+ rev : v1.7.1
30
28
hooks :
31
29
- id : mypy
32
30
files : zarr
Original file line number Diff line number Diff line change @@ -2536,7 +2536,7 @@ def hexdigest(self, hashname="sha1"):
2536
2536
checksum = binascii .hexlify (self .digest (hashname = hashname ))
2537
2537
2538
2538
# This is a bytes object on Python 3 and we want a str.
2539
- if type (checksum ) is not str :
2539
+ if not isinstance (checksum , str ) :
2540
2540
checksum = checksum .decode ("utf8" )
2541
2541
2542
2542
return checksum
You can’t perform that action at this time.
0 commit comments