From 1f1d2832649717d59c6448156ce4e9b3200deea1 Mon Sep 17 00:00:00 2001 From: Allen Goodman Date: Mon, 13 May 2024 11:29:54 -0400 Subject: [PATCH] cleanup --- pyproject.toml | 2 +- src/beignet/__init__.py | 6 +++++- src/beignet/{operators => }/_needleman_wunsch.py | 0 src/beignet/{operators => }/_smith_waterman.py | 0 src/beignet/operators/__init__.py | 7 ------- tests/beignet/{operators => }/test__needleman_wunsch.py | 0 tests/beignet/{operators => }/test__smith_waterman.py | 0 7 files changed, 6 insertions(+), 9 deletions(-) rename src/beignet/{operators => }/_needleman_wunsch.py (100%) rename src/beignet/{operators => }/_smith_waterman.py (100%) delete mode 100644 src/beignet/operators/__init__.py rename tests/beignet/{operators => }/test__needleman_wunsch.py (100%) rename tests/beignet/{operators => }/test__smith_waterman.py (100%) diff --git a/pyproject.toml b/pyproject.toml index b14277f13d..65bcc2339d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ exclude = [ "./src/beignet/constants/_substitution_matrices.py", ] -[tool.ruff] +[tool.ruff.lint] select = [ "B", # FLAKE8-BUGBEAR "E", # PYCODESTYLE ERRORS diff --git a/src/beignet/__init__.py b/src/beignet/__init__.py index f91d4adc64..76a8dfc20f 100644 --- a/src/beignet/__init__.py +++ b/src/beignet/__init__.py @@ -28,6 +28,7 @@ from ._invert_quaternion import invert_quaternion from ._invert_rotation_matrix import invert_rotation_matrix from ._invert_rotation_vector import invert_rotation_vector +from ._needleman_wunsch import needleman_wunsch from ._quaternion_identity import quaternion_identity from ._quaternion_magnitude import quaternion_magnitude from ._quaternion_mean import quaternion_mean @@ -65,6 +66,7 @@ from ._rotation_vector_to_rotation_matrix import ( rotation_vector_to_rotation_matrix, ) +from ._smith_waterman import smith_waterman from ._translation_identity import translation_identity __all__ = [ @@ -86,9 +88,11 @@ "invert_quaternion", "invert_rotation_matrix", "invert_rotation_vector", + "needleman_wunsch", "quaternion_identity", "quaternion_magnitude", "quaternion_mean", + "quaternion_slerp", "quaternion_to_euler_angle", "quaternion_to_rotation_matrix", "quaternion_to_rotation_vector", @@ -108,6 +112,6 @@ "rotation_vector_to_euler_angle", "rotation_vector_to_quaternion", "rotation_vector_to_rotation_matrix", - "quaternion_slerp", + "smith_waterman", "translation_identity", ] diff --git a/src/beignet/operators/_needleman_wunsch.py b/src/beignet/_needleman_wunsch.py similarity index 100% rename from src/beignet/operators/_needleman_wunsch.py rename to src/beignet/_needleman_wunsch.py diff --git a/src/beignet/operators/_smith_waterman.py b/src/beignet/_smith_waterman.py similarity index 100% rename from src/beignet/operators/_smith_waterman.py rename to src/beignet/_smith_waterman.py diff --git a/src/beignet/operators/__init__.py b/src/beignet/operators/__init__.py deleted file mode 100644 index e281919d3c..0000000000 --- a/src/beignet/operators/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from ._needleman_wunsch import needleman_wunsch -from ._smith_waterman import smith_waterman - -__all__ = [ - "needleman_wunsch", - "smith_waterman", -] diff --git a/tests/beignet/operators/test__needleman_wunsch.py b/tests/beignet/test__needleman_wunsch.py similarity index 100% rename from tests/beignet/operators/test__needleman_wunsch.py rename to tests/beignet/test__needleman_wunsch.py diff --git a/tests/beignet/operators/test__smith_waterman.py b/tests/beignet/test__smith_waterman.py similarity index 100% rename from tests/beignet/operators/test__smith_waterman.py rename to tests/beignet/test__smith_waterman.py