Skip to content

Commit 95b2810

Browse files
chore: update pre-commit hooks (#579)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.5.6](astral-sh/ruff-pre-commit@v0.5.0...v0.5.6) - [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.1](pre-commit/mirrors-mypy@v1.10.1...v1.11.1) <!--pre-commit.ci end--> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent f65a39c commit 95b2810

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
- id: trailing-whitespace
2626

2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.5.0
28+
rev: v0.5.6
2929
hooks:
3030
- id: ruff
3131
args: ["--fix", "--show-fixes"]
@@ -34,7 +34,7 @@ repos:
3434
types_or: [python, pyi, jupyter]
3535

3636
- repo: https://github.com/pre-commit/mirrors-mypy
37-
rev: v1.10.1
37+
rev: v1.11.1
3838
hooks:
3939
- id: mypy
4040
files: ^src

tests/test_general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def test_general_transform_proxy():
699699

700700
def test_hist_proxy_matches(named_hist):
701701
h = named_hist.new.Reg(10, 0, 1, name="x").Double()
702-
assert type(h) == named_hist
702+
assert type(h) is named_hist
703703

704704

705705
def test_hist_proxy():
@@ -710,7 +710,7 @@ def test_hist_proxy():
710710
h = Hist.new.Reg(10, 0, 1, name="x").Double().fill([0.5, 0.5])
711711
assert h[0.5j] == 2
712712

713-
assert type(h) == Hist
713+
assert type(h) is Hist
714714

715715
assert not hasattr(Hist(), "new")
716716

0 commit comments

Comments
 (0)