Skip to content

Commit e0c0d6f

Browse files
committed
[skip ci] pre-commit cleanup
1 parent a4c6d2d commit e0c0d6f

13 files changed

+1307
-597
lines changed

tests/root/test_EulerAngles.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@
44
# or https://github.com/scikit-hep/vector for details.
55

66
import pytest
7-
from hypothesis import given, strategies as st
87

9-
import vector
8+
# from hypothesis import given
9+
# from hypothesis import strategies as st
10+
11+
# import vector
1012

1113
# If ROOT is not available, skip these tests.
1214
ROOT = pytest.importorskip("ROOT")
1315

1416
# 4D constructor arguments to get all the weird cases.
1517
constructor = [
1618
(0, 0, 0, 0),
17-
(0, 0, 1, 0), # theta == 0.0
19+
(0, 0, 1, 0), # theta == 0.0
1820
(0, 0, -1, 0),
1921
(0, 0, 1, 0),
2022
(0, 0, 0, 4294967296),
@@ -24,15 +26,15 @@
2426
(1, 2, 3, 0),
2527
(1, 2, 3, 10),
2628
(1, 2, 3, -10),
27-
(1., 2., 3., 2.5),
29+
(1.0, 2.0, 3.0, 2.5),
2830
(1, 2, 3, 2.5),
2931
(1, 2, 3, -2.5),
3032
]
3133

3234
# Coordinate conversion methods to apply to the VectorObject4D.
3335
coordinate_list = [
3436
"to_xyzt",
35-
"to_xythetat", # may fail for constructor2
37+
"to_xythetat", # may fail for constructor2
3638
"to_xyetat",
3739
"to_rhophizt",
3840
"to_rhophithetat",
@@ -45,10 +47,12 @@
4547
"to_rhophietatau",
4648
]
4749

50+
4851
@pytest.fixture(scope="module", params=coordinate_list)
4952
def coordinates(request):
5053
return request.param
5154

55+
5256
angle_list = [
5357
0,
5458
0.0,
@@ -62,10 +66,12 @@ def coordinates(request):
6266
-6.283185307179586,
6367
]
6468

69+
6570
@pytest.fixture(scope="module", params=angle_list)
6671
def angle(request):
6772
return request.param
6873

74+
6975
scalar_list = [
7076
0,
7177
-1,
@@ -74,6 +80,7 @@ def angle(request):
7480
-100000.0000,
7581
]
7682

83+
7784
@pytest.fixture(scope="module", params=scalar_list)
7885
def scalar(request):
7986
return request.param

0 commit comments

Comments
 (0)