From be1d5fa5c240832ef064ea1e8af3bde07202e8f8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Aug 2023 18:48:44 +0000 Subject: [PATCH] style: pre-commit fixes --- tests/test_0080_flatpandas_multiindex_rows_and_columns.py | 5 ++--- tests/test_2306_cppyy_jit.py | 8 +++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/test_0080_flatpandas_multiindex_rows_and_columns.py b/tests/test_0080_flatpandas_multiindex_rows_and_columns.py index f226ed29aa..4beec906db 100644 --- a/tests/test_0080_flatpandas_multiindex_rows_and_columns.py +++ b/tests/test_0080_flatpandas_multiindex_rows_and_columns.py @@ -3,8 +3,8 @@ import json import numpy as np # noqa: F401 -import pytest import packaging.version +import pytest import awkward as ak @@ -12,8 +12,7 @@ @pytest.mark.skipif( - packaging.version.Version(pandas.__version__) - < packaging.version.Version("1.0"), + packaging.version.Version(pandas.__version__) < packaging.version.Version("1.0"), reason="Test Pandas in 1.0+ because they had to fix their JSON format.", ) def test(): diff --git a/tests/test_2306_cppyy_jit.py b/tests/test_2306_cppyy_jit.py index 28f7167239..2cbc1f45f4 100644 --- a/tests/test_2306_cppyy_jit.py +++ b/tests/test_2306_cppyy_jit.py @@ -1,8 +1,8 @@ # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE -import pytest import packaging.version +import pytest import awkward as ak import awkward._connect.cling @@ -46,8 +46,7 @@ def test_array_as_generated_dataset(): @pytest.mark.skipif( - packaging.version.Version(cppyy.__version__) - < packaging.version.Version("3.0.1"), + packaging.version.Version(cppyy.__version__) < packaging.version.Version("3.0.1"), reason="Awkward Array can only work with cppyy 3.0.1 or later.", ) def test_array_as_type(): @@ -82,8 +81,7 @@ def test_array_as_type(): @pytest.mark.skipif( - packaging.version.Version(cppyy.__version__) - < packaging.version.Version("3.0.1"), + packaging.version.Version(cppyy.__version__) < packaging.version.Version("3.0.1"), reason="Awkward Array can only work with cppyy 3.0.1 or later.", ) def test_array_as_templated_type():