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 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)