Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

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

pre-commit-ci[bot]257fbbcdf12e
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3d198d454..0ead14bcd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,13 +20,13 @@ repos:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.0.292
+ rev: v0.1.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
- rev: 23.9.1
+ rev: 23.10.0
hooks:
- id: black
diff --git a/test/nerf/test_camera_utils.py b/test/nerf/test_camera_utils.py
index cb4533eac..dbb445e1d 100755
--- a/test/nerf/test_camera_utils.py
+++ b/test/nerf/test_camera_utils.py
@@ -21,7 +21,10 @@ _ref = {
def _get_data(url: str, sha256: str) -> str:
- req = urllib.request.Request(url)
+ if not url.startswith(("http:", "https:")):
+ raise ValueError("URL must start with 'http:' or 'https:'")
+
+ req = urllib.request.Request(url) # noqa: S310
with urllib.request.urlopen(req) as response: # noqa: S310
data = response.read()