Skip to content

Commit

Permalink
Add autoflake to pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Nov 9, 2024
1 parent 0fe5a7a commit 6638a0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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
Expand Down
2 changes: 0 additions & 2 deletions pyrobosim/pyrobosim/utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ def get(self, category):
class InvalidEntityCategoryException(Exception):
"""Raised when an invalid entity metadata category is used."""

pass


def replace_special_yaml_tokens(in_text, root_dir=None):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyrobosim_ros/examples/demo_pddl_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def do_plan(self):
try:
result = self.world_state_future_response.result()
update_world_from_state_msg(self.world, result.state)
except Exception as e:
except Exception:
self.get_logger().info("Failed to unpack world state.")

# Once the world state is set, plan using the first robot.
Expand Down

0 comments on commit 6638a0a

Please sign in to comment.