π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
[pre-commit.ci] pre-commit suggestions (#2632)
pre-commit-ci[bot]257fbbcdf12e
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 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.1hooks:- id: ruffargs: [--fix, --exit-non-zero-on-fix]- repo: https://github.com/psf/black- rev: 23.9.1+ rev: 23.10.0hooks:- id: blackdiff --git a/test/nerf/test_camera_utils.py b/test/nerf/test_camera_utils.pyindex 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: S310with urllib.request.urlopen(req) as response: # noqa: S310data = response.read()