Skip to content

Commit

Permalink
chore: update pre-commit hooks (#579)
Browse files Browse the repository at this point in the history
<!--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]>
  • Loading branch information
pre-commit-ci[bot] and henryiii authored Aug 24, 2024
1 parent f65a39c commit 95b2810
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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")

Expand Down

0 comments on commit 95b2810

Please sign in to comment.