Skip to content

fix: remove unused imports by default #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ repos:
hooks:
- id: shellcheck

- repo: https://github.com/pycqa/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: ["--remove-all-unused-imports", "--in-place"]

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
Expand All @@ -33,8 +39,3 @@ repos:
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/pycqa/autoflake
rev: v2.3.1
hooks:
- id: autoflake
1 change: 0 additions & 1 deletion src/rai/scenario_engine/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .scenario_engine import *
8 changes: 1 addition & 7 deletions src/rai/scenario_engine/tool_runner.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
from typing import Any, Dict, List, Literal, Sequence

from langchain.tools import BaseTool
from langchain_core.messages import (
AIMessage,
BaseMessage,
HumanMessage,
ToolCall,
ToolMessage,
)
from langchain_core.messages import AIMessage, BaseMessage, ToolCall, ToolMessage

from rai.scenario_engine.messages import ToolMultimodalMessage

Expand Down
2 changes: 0 additions & 2 deletions src/rai/tools/ros/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def _run(self, x: float, y: float, z: float = 0.0, text: str = ""):
global marker_it
"""Sets a waypoint on the map."""
import rclpy
from builtin_interfaces.msg import Time
from geometry_msgs.msg import Point
from rclpy.node import Node
from visualization_msgs.msg import Marker

Expand Down