Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

[pre-commit.ci] pre-commit suggestions (#2811)

pre-commit-ci[bot]7229990ff4df
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fed070fce..db623ad53 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,7 +20,7 @@ repos:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.2.1
+ rev: v0.2.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
diff --git a/tests/integration/test_conversions.py b/tests/integration/test_conversions.py
index dbe74f508..e78d0fabf 100644
--- a/tests/integration/test_conversions.py
+++ b/tests/integration/test_conversions.py
@@ -187,7 +187,9 @@ class TestAngleOfRotations:
@pytest.mark.parametrize("axis_name", ("x", "y", "z"))
def test_axis_angle_to_rotation_matrix(self, axis_name, device, dtype, atol, rtol):
# Random angle in [-pi..pi]
- angle = torch.tensor((np.random.random(size=(2, 1)) * 2.0 * np.pi - np.pi), device=device, dtype=dtype)
+ angle = torch.tensor(
+ (np.random.default_rng().random(size=(2, 1)) * 2.0 * np.pi - np.pi), device=device, dtype=dtype
+ )
rot_m, axis = TestAngleOfRotations.axis_and_angle_to_rotation_matrix(
axis_name=axis_name, angle=angle, device=device, dtype=dtype
)