diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0955dda5..550ea5a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.0 + rev: v0.5.6 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -34,7 +34,7 @@ repos: types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.1 hooks: - id: mypy files: ^src diff --git a/tests/test_general.py b/tests/test_general.py index eafb8d68..bcd86229 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -699,7 +699,7 @@ def test_general_transform_proxy(): def test_hist_proxy_matches(named_hist): h = named_hist.new.Reg(10, 0, 1, name="x").Double() - assert type(h) == named_hist + assert type(h) is named_hist def test_hist_proxy(): @@ -710,7 +710,7 @@ def test_hist_proxy(): h = Hist.new.Reg(10, 0, 1, name="x").Double().fill([0.5, 0.5]) assert h[0.5j] == 2 - assert type(h) == Hist + assert type(h) is Hist assert not hasattr(Hist(), "new")