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

[pre-commit.ci] pre-commit autoupdate #145

Merged
merged 2 commits into from
Aug 20, 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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
args:
- --target-version=py38
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
- repo: https://github.com/PyCQA/isort
Expand Down
2 changes: 1 addition & 1 deletion src/dask_histogram/boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _rebuild(

@property
def _in_memory_type(self) -> type[bh.Histogram]:
if type(self) != Histogram:
if type(self) is not Histogram:
warnings.warn(
"""dask_histogram.boost.Histogram has been subclassed without
overriding '_in_memory_type', please do so if you would like to
Expand Down
4 changes: 2 additions & 2 deletions tests/test_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def test_add(use_weights):
def test_name_assignment():
import dask.array as da

hist = pytest.importorskip("hist")
pytest.importorskip("hist")
import hist.dask

x = da.random.normal(size=100)
Expand All @@ -545,7 +545,7 @@ def test_histref_pickle():

import dask.array as da

hist = pytest.importorskip("hist")
pytest.importorskip("hist")
import hist.dask

x = da.random.normal(size=100)
Expand Down
Loading