Skip to content

Commit b5f79dd

Browse files
chore: update pre-commit hooks (#1448)
* chore: update pre-commit hooks updates: - https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.224 → v0.1.8](astral-sh/ruff-pre-commit@v0.0.224...v0.1.8) - [github.com/psf/black: 23.10.1 → 23.12.0](psf/black@23.10.1...23.12.0) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](codespell-project/codespell@v2.2.5...v2.2.6) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0) - [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.7.1](pre-commit/mirrors-mypy@v1.3.0...v1.7.1) * Attempt to fix ruff * Use isinstance --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Josh Moore <[email protected]>
1 parent 490e0fe commit b5f79dd

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.pre-commit-config.yaml

+6-8
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,25 @@ default_stages: [commit, push]
66
default_language_version:
77
python: python3
88
repos:
9-
- repo: https://github.com/charliermarsh/ruff-pre-commit
9+
- repo: https://github.com/astral-sh/ruff-pre-commit
1010
# Ruff version.
11-
rev: 'v0.0.224'
11+
rev: 'v0.1.8'
1212
hooks:
1313
- id: ruff
14-
# Respect `exclude` and `extend-exclude` settings.
15-
args: ["--force-exclude"]
1614
- repo: https://github.com/psf/black
17-
rev: 23.10.1
15+
rev: 23.12.0
1816
hooks:
1917
- id: black
2018
- repo: https://github.com/codespell-project/codespell
21-
rev: v2.2.5
19+
rev: v2.2.6
2220
hooks:
2321
- id: codespell
2422
- repo: https://github.com/pre-commit/pre-commit-hooks
25-
rev: v4.4.0
23+
rev: v4.5.0
2624
hooks:
2725
- id: check-yaml
2826
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: v1.3.0
27+
rev: v1.7.1
3028
hooks:
3129
- id: mypy
3230
files: zarr

zarr/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,7 @@ def hexdigest(self, hashname="sha1"):
25362536
checksum = binascii.hexlify(self.digest(hashname=hashname))
25372537

25382538
# 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):
25402540
checksum = checksum.decode("utf8")
25412541

25422542
return checksum

0 commit comments

Comments
 (0)