Skip to content

Commit 1aef1b7

Browse files
chore: update pre-commit hooks (#302)
* chore: update pre-commit hooks updates: - [github.com/PyCQA/isort: 5.11.1 → v5.11.3](PyCQA/isort@5.11.1...v5.11.3) * chore: fix 3.11 CI Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Saransh Chopra <saransh0701@gmail.com>
1 parent 4d060a9 commit 1aef1b7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
- id: trailing-whitespace
3232

3333
- repo: https://github.com/PyCQA/isort
34-
rev: 5.11.1
34+
rev: v5.11.3
3535
hooks:
3636
- id: isort
3737
args: ["-a", "from __future__ import annotations"]

tests/backends/test_awkward.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def test_basic():
4545
assert array.x.tolist() == [[1], [], [3]]
4646
assert array.y.tolist() == [[2], [], [4]]
4747
assert array.rho.tolist() == [[2.23606797749979], [], [5]]
48-
assert array.phi.tolist() == [[1.1071487177940904], [], [0.9272952180016122]]
48+
(a,), (), (c,) = array.phi.tolist()
49+
assert a == pytest.approx(1.1071487177940904)
50+
assert c == pytest.approx(0.9272952180016122)
4951
assert isinstance(array[2, 0], vector.backends.awkward.VectorRecord2D)
5052
assert array[2, 0].rho == 5
5153
assert array.deltaphi(array).tolist() == [[0], [], [0]]

0 commit comments

Comments
 (0)