diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af101d0..2de2960 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,6 +33,12 @@ repos: hooks: - id: black + # Removes unused imports. + - repo: https://github.com/PyCQA/autoflake + rev: v2.3.1 + hooks: + - id: autoflake + # Finds spelling issues in code. - repo: https://github.com/codespell-project/codespell rev: v2.3.0 diff --git a/src/pyroboplan/planning/path_shortcutting.py b/src/pyroboplan/planning/path_shortcutting.py index b6cc88e..0e56958 100644 --- a/src/pyroboplan/planning/path_shortcutting.py +++ b/src/pyroboplan/planning/path_shortcutting.py @@ -1,6 +1,5 @@ """ Capabilities to shorten paths produced by motion planners. """ -import copy import numpy as np from pyroboplan.core.utils import configuration_distance, get_path_length diff --git a/test/planning/test_prm.py b/test/planning/test_prm.py index b090dbe..6c6e361 100644 --- a/test/planning/test_prm.py +++ b/test/planning/test_prm.py @@ -28,7 +28,7 @@ def test_construct_roadmap(): def test_construct_roadmap_prm_star(): # Initialize the roadmap using PRM* options = PRMPlannerOptions(prm_star=True, max_construction_nodes=100) - planner = construct_roadmap_test(options) + construct_roadmap_test(options) def test_plan_trivial_prm():