Skip to content

Commit

Permalink
Update pre-commit hooks and apply
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTov committed Feb 14, 2024
1 parent 73c609b commit b0ae31c
Show file tree
Hide file tree
Showing 29 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ fail_fast: true

repos:
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.2.0
hooks:
- id: black

- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-isort]
1 change: 1 addition & 0 deletions CI/integration_tests/test_simple_spheres.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
-------
Test the visualization of simple spheres.
"""

import time

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions CI/unit_tests/bounding_box/test_bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Unit test for the bounding box.
"""

import numpy as np
import open3d as o3d

Expand Down
1 change: 1 addition & 0 deletions CI/unit_tests/mesh/test_cylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Run unit tests on the sphere module.
"""

import unittest

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions CI/unit_tests/mesh/test_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Test the mesh module.
"""

import unittest

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions CI/unit_tests/mesh/test_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Run unit tests on the sphere module.
"""

import unittest

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions CI/unit_tests/particle/test_particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-------
Test the particle dataclass operations.
"""

import unittest

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions CI/unit_tests/transformations/test_rotation_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-------
Test the rotation matrices module.
"""

import unittest

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions CI/unit_tests/visualizer/test_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
-------
Test the visualizer module.
"""

import time
import unittest

Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Conf file for the PyRND docs.
"""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions examples/custom_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
-------
Tutorial on reading custom mesh objects.
"""

import numpy as np

import znvis as vis
Expand Down
1 change: 1 addition & 0 deletions examples/export_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Tutorial script to visualize simple spheres over a random trajectory.
"""

import numpy as np

import znvis as vis
Expand Down
1 change: 1 addition & 0 deletions examples/simple_cylinders.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
-------
Example script for visualizing simple cylinders.
"""

import numpy as np

import znvis as vis
Expand Down
1 change: 1 addition & 0 deletions examples/simple_spheres.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Tutorial script to visualize simple spheres over a random trajectory.
"""

import numpy as np

import znvis as vis
Expand Down
1 change: 1 addition & 0 deletions examples/simple_spheres_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Tutorial script to visualize simple spheres over a random trajectory.
"""

import numpy as np

import znvis as vis
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Summary
-------
"""

from os import path

import setuptools
Expand Down
1 change: 1 addition & 0 deletions znvis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
-------
init file for the main ZnVis package.
"""

from znvis.bounding_objects.bounding_box import BoundingBox
from znvis.material.material import Material
from znvis.mesh.custom import CustomMesh
Expand Down
1 change: 1 addition & 0 deletions znvis/bounding_objects/bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Create bounding box.
"""

from dataclasses import dataclass

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions znvis/material/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
-------
Initi file for the material module.
"""

from znvis.material.material import Material

__all__ = [Material.__name__]
1 change: 1 addition & 0 deletions znvis/material/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
-------
Material parent class.
"""

from dataclasses import dataclass

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions znvis/mesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Package for the ZnVis meshes.
"""

from .mesh import Mesh

__all__ = ["Mesh"]
1 change: 1 addition & 0 deletions znvis/mesh/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
-------
Create a custom mesh
"""

from dataclasses import dataclass

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions znvis/mesh/cylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
-------
Create a cylinder mesh
"""

from dataclasses import dataclass

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions znvis/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-------
Module for the mesh parent class.
"""

from dataclasses import dataclass

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions znvis/mesh/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Create a sphere mesh.
"""

from dataclasses import dataclass

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions znvis/particle/particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Module for the particle parent class
"""

import typing
from dataclasses import dataclass

Expand Down
1 change: 1 addition & 0 deletions znvis/testing/znvis_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Module for ZnVis processes using in testing.
"""

import multiprocessing
import traceback

Expand Down
1 change: 1 addition & 0 deletions znvis/transformations/rotation_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-------
Module for the computation of rotation matrices.
"""

import numpy as np


Expand Down
1 change: 1 addition & 0 deletions znvis/visualizer/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-------
Main visualizer class.
"""

import pathlib
import re
import shutil
Expand Down

0 comments on commit b0ae31c

Please sign in to comment.