From 045e44aa05ab19e202f3468cbda94f70ab6dec6e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 22:08:33 +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 → 25.11.0](https://github.com/psf/black-pre-commit-mirror/compare/22.8.0...25.11.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..0c9dfc0d 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: 25.11.0 hooks: - id: black language_version: python From 1e2698414965adad67d27a48ddc5589b2c4dc85b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 22:09:55 +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_writer.py | 1 + python/copclib/mp/read.py | 1 + 2 files changed, 2 insertions(+) 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)