From 726209a2f4508eeea8010eeee26a22e6d16db772 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
 <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Tue, 11 Jul 2023 08:30:35 +0000
Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
---
 example/example_laz_writer.py | 1 -
 example/example_writer.py     | 4 +---
 python/copclib/mp/read.py     | 1 +
 test/box_test.py              | 2 --
 test/extents_test.py          | 1 -
 test/key_test.py              | 1 -
 test/mp_read_test.py          | 1 -
 test/pickle_test.py           | 1 -
 test/point_test.py            | 1 -
 test/points_test.py           | 2 --
 test/reader_test.py           | 1 -
 test/utils.py                 | 1 -
 test/writer_test.py           | 2 --
 13 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/example/example_laz_writer.py b/example/example_laz_writer.py
index a0c32fb3..ae64cd75 100644
--- a/example/example_laz_writer.py
+++ b/example/example_laz_writer.py
@@ -14,7 +14,6 @@
 
 # This function will generate `NUM_POINTS` random points within the voxel bounds
 def RandomPoints(las_header, number_points):
-
     # Create a Points object based on the LAS header
     points = copc.Points(las_header)
 
diff --git a/example/example_writer.py b/example/example_writer.py
index 79cdab26..2162b725 100644
--- a/example/example_writer.py
+++ b/example/example_writer.py
@@ -8,9 +8,9 @@
 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):
-
     # We'll get our point data from this file
     reader = copc.FileReader(os.path.join(DATADIRECTORY, "autzen-classified.copc.laz"))
 
@@ -188,7 +188,6 @@ def ResolutionTrimFileExample():
 
 # This function will generate `NUM_POINTS` random points within the voxel bounds
 def RandomPoints(key, las_header, number_points):
-
     # Voxel cube dimensions will be calculated from the maximum spacing of the file
     span = max(
         {
@@ -234,7 +233,6 @@ def RandomPoints(key, las_header, number_points):
 
 # In this example, we'll create our own file from scratch
 def NewFileExample():
-
     # Create our new file with the specified format, scale, and offset
     cfg = copc.CopcConfigWriter(
         point_format_id=8,
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)
diff --git a/test/box_test.py b/test/box_test.py
index e3628ac1..b56b29b4 100644
--- a/test/box_test.py
+++ b/test/box_test.py
@@ -5,7 +5,6 @@
 
 
 def test_box_constructors():
-
     # 2D box constructor
     box = copc.Box(1.0, 0.0, 1.0, 1.0)
     assert box.x_min == 1.0
@@ -63,7 +62,6 @@ def test_box_constructors():
 
 
 def test_box_functions():
-
     # Intersects 2D box
     ## Contains
     assert copc.Box(0, 0, 4, 4).Intersects((1, 1, 2, 2))
diff --git a/test/extents_test.py b/test/extents_test.py
index 53052ed1..d6049485 100644
--- a/test/extents_test.py
+++ b/test/extents_test.py
@@ -6,7 +6,6 @@
 
 
 def test_copc_extents():
-
     point_format_id = 7
     num_eb_items = 3
 
diff --git a/test/key_test.py b/test/key_test.py
index 38b2d437..dea44956 100644
--- a/test/key_test.py
+++ b/test/key_test.py
@@ -104,7 +104,6 @@ def test_get_parents():
 
 
 def test_key_spatial_functions():
-
     # Make a LasHeader with span 2
     header = copc.LasHeader()
     header.min = (0, 0, 0)
diff --git a/test/mp_read_test.py b/test/mp_read_test.py
index be4f04d0..f8525e77 100644
--- a/test/mp_read_test.py
+++ b/test/mp_read_test.py
@@ -54,7 +54,6 @@ def test_xyz_map_class_limit():
     )
 
     for node in reader.GetAllNodes():
-
         points = reader.GetPoints(node)
         point_limit = [p for p in points if p.classification in classification_limits]
         if len(point_limit) == 0:
diff --git a/test/pickle_test.py b/test/pickle_test.py
index e3a2c562..e051d448 100644
--- a/test/pickle_test.py
+++ b/test/pickle_test.py
@@ -37,7 +37,6 @@ def test_node():
 
 
 def test_las_header():
-
     reader = copc.FileReader(get_autzen_file())
     las_header = reader.copc_config.las_header
 
diff --git a/test/point_test.py b/test/point_test.py
index 7e251e6d..b1c2b2ac 100644
--- a/test/point_test.py
+++ b/test/point_test.py
@@ -374,7 +374,6 @@ def test_operator_copy():
 
 
 def test_scaled_xyz():
-
     pfid = 8
 
     # No scale and offset
diff --git a/test/points_test.py b/test/points_test.py
index 4ff74a96..af62caa6 100644
--- a/test/points_test.py
+++ b/test/points_test.py
@@ -255,7 +255,6 @@ def test_points_group_accessors():
 
 
 def test_within():
-
     points = copc.Points(6)
 
     # generate points
@@ -278,7 +277,6 @@ def test_within():
 
 
 def test_get_within():
-
     points = copc.Points(6)
 
     # generate points
diff --git a/test/reader_test.py b/test/reader_test.py
index 23836b58..93a759a9 100644
--- a/test/reader_test.py
+++ b/test/reader_test.py
@@ -149,7 +149,6 @@ def test_point_error_handling():
 
 
 def test_spatial_query_functions():
-
     reader = copc.FileReader(get_autzen_file())
 
     # Make horizontal 2D box of [400,400] roughly in the middle of the point cloud.
diff --git a/test/utils.py b/test/utils.py
index 193095a0..5ef04a8b 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -33,7 +33,6 @@ def generate_test_file():
 
     # This function will generate `NUM_POINTS` random points within the voxel bounds
     def RandomPoints(key, las_header, number_points):
-
         # Voxel cube dimensions will be calculated from the maximum spacing of the file
         span = max(
             {
diff --git a/test/writer_test.py b/test/writer_test.py
index 1ba295b6..9c98ec9a 100644
--- a/test/writer_test.py
+++ b/test/writer_test.py
@@ -337,7 +337,6 @@ def test_writer_copy():
 
 
 def test_writer_copy_and_update():
-
     # Create test file
     orig_point_format_id = 7
     orig_scale = copc.Vector3(0.1, 0.1, 0.1)
@@ -693,7 +692,6 @@ def test_writer_copy_and_update():
 
 
 def test_check_spatial_bounds():
-
     file_path = os.path.join(get_data_dir(), "writer_test.copc.laz")
 
     cfg = copc.CopcConfigWriter(7, (0.1, 0.1, 0.1), (50, 50, 50))