Skip to content

Commit

Permalink
Merge pull request #474 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 Feb 20, 2024
2 parents 0931b6b + 08255fb commit 379d0d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
rev: 24.2.0
hooks:
- id: black
language_version: python3
Expand All @@ -24,7 +24,7 @@ repos:
- --target-version=py312

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.2.2
hooks:
- id: ruff

Expand All @@ -35,7 +35,7 @@ repos:
language_version: python3

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args:
Expand Down
13 changes: 9 additions & 4 deletions tests/test_unproject_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,26 @@ def test_UnionArray():


def test_BitMaskedArray():
form = ak.forms.BitMaskedForm('u8', ak.forms.NumpyForm('int64'), valid_when=False, lsb_order=True)
form = ak.forms.BitMaskedForm(
"u8", ak.forms.NumpyForm("int64"), valid_when=False, lsb_order=True
)
projected = ak.contents.UnmaskedArray(ak.from_iter([1, 2, 3, 4], highlevel=False))
unprojected = unproject_layout(form, projected)
compare_values(projected, unprojected)

form = ak.forms.BitMaskedForm('u8', ak.forms.NumpyForm('int64'), valid_when=True, lsb_order=True)
form = ak.forms.BitMaskedForm(
"u8", ak.forms.NumpyForm("int64"), valid_when=True, lsb_order=True
)
unprojected = unproject_layout(form, projected)
compare_values(projected, unprojected)


def test_ByteMaskedArray():
form = ak.forms.ByteMaskedForm('u8', ak.forms.NumpyForm('int64'), valid_when=False)
form = ak.forms.ByteMaskedForm("u8", ak.forms.NumpyForm("int64"), valid_when=False)
projected = ak.contents.UnmaskedArray(ak.from_iter([1, 2, 3, 4], highlevel=False))
unprojected = unproject_layout(form, projected)
compare_values(projected, unprojected)

form = ak.forms.ByteMaskedForm('u8', ak.forms.NumpyForm('int64'), valid_when=True)
form = ak.forms.ByteMaskedForm("u8", ak.forms.NumpyForm("int64"), valid_when=True)
unprojected = unproject_layout(form, projected)
compare_values(projected, unprojected)

0 comments on commit 379d0d4

Please sign in to comment.