Skip to content

Commit

Permalink
Merge pull request #145 from dask-contrib/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
martindurant authored Aug 20, 2024
2 parents 79e15f5 + 10a3239 commit e943e7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit e943e7a

Please sign in to comment.