From 5f5ab365d140cc3c5310b7463194244c99c0c79c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 22:05:01 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.8.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/22.8.0...26.1.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2256119e..e659cac6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: version repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 # Use the ref you want to point at + rev: v6.0.0 # Use the ref you want to point at hooks: - id: trailing-whitespace name: (Common) Remove trailing whitespaces @@ -25,8 +25,8 @@ repos: args: ["-i"] additional_dependencies: ["clang-format==12.0.1"] -- repo: https://github.com/psf/black - rev: 22.8.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black language_version: python From 5846ebce44b894a074dedc696dc4663890e5b93a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 22:05:15 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- example/example_mp.py | 1 - example/example_writer.py | 1 + python/copclib/mp/read.py | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/example_mp.py b/example/example_mp.py index c51a3d66..e2ec31d1 100644 --- a/example/example_mp.py +++ b/example/example_mp.py @@ -6,7 +6,6 @@ from tqdm import tqdm import os - DATADIRECTORY = os.path.join(os.path.dirname(__file__), "..", "test", "data") if not os.path.exists(os.path.join(os.path.join(DATADIRECTORY, "out"))): os.makedirs(os.path.join(DATADIRECTORY, "out")) diff --git a/example/example_writer.py b/example/example_writer.py index 79cdab26..2b13c02a 100644 --- a/example/example_writer.py +++ b/example/example_writer.py @@ -8,6 +8,7 @@ if not os.path.exists(os.path.join(os.path.join(DATADIRECTORY, "out"))): os.makedirs(os.path.join(DATADIRECTORY, "out")) + # In this example, we'll filter the autzen dataset to only contain depth levels 0-3. def TrimFileExample(compressor_example_flag): diff --git a/python/copclib/mp/read.py b/python/copclib/mp/read.py index e2a90df3..01f0be98 100644 --- a/python/copclib/mp/read.py +++ b/python/copclib/mp/read.py @@ -4,6 +4,7 @@ import concurrent.futures + # Initialize each multiprocessing thread with a copy of the copc reader def init_mp(copc_path): _read_node.copc_reader = copc.FileReader(copc_path)