Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update pre-commit hooks #579

Merged
merged 2 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading