Skip to content
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

chore(pre-commit.ci): pre-commit autoupdate #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-json
- id: check-merge-conflict
Expand All @@ -18,23 +18,23 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.33.0
rev: v0.42.0
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
rev: v4.0.0-alpha.8
hooks:
- id: prettier

- repo: https://github.com/adrienverge/yamllint
rev: v1.30.0
rev: v1.35.1
hooks:
- id: yamllint

- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.9.0
rev: v0.10.0
hooks:
- id: flake8-ros
- id: prettier-xacro
Expand All @@ -44,42 +44,42 @@ repos:
- id: sort-package-xml

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
rev: v0.10.0.1
hooks:
- id: shellcheck

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.6.0-2
rev: v3.10.0-1
hooks:
- id: shfmt
args: [-w, -s, -i=4]

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

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.10.0
hooks:
- id: black
args: [--line-length=100]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.0
rev: v19.1.3
hooks:
- id: clang-format
types_or: [c++, c, cuda]

- repo: https://github.com/cpplint/cpplint
rev: 1.6.1
rev: 2.0.0
hooks:
- id: cpplint
args: [--quiet]
exclude: .cu

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.2
rev: 0.29.4
hooks:
- id: check-metaschema
files: ^.+/schema/.*schema\.json$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ def process_include_tag(
local_context,
base_namespace,
)
temp_context[
name
] = value # temp_context is used to pass arguments to the included file and updated on the fly for each argument
temp_context[name] = (
value # temp_context is used to pass arguments to the included file and updated on the fly for each argument
)
for key in argument_dict:
temp_context[key] = argument_dict[key]
if included_file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def find_package(package_name) -> str:

BASE_PROJECT_MAPPING[package_name] = get_package_share_directory(package_name)
else:
BASE_PROJECT_MAPPING[
package_name
] = f"/opt/ros/humble/share/{package_name}" # use this for temporal solution;
BASE_PROJECT_MAPPING[package_name] = (
f"/opt/ros/humble/share/{package_name}" # use this for temporal solution;
)
return BASE_PROJECT_MAPPING[package_name]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ struct LoggerNamespaceInfo
};
class LoggingLevelConfigureRvizPlugin : public rviz_common::Panel
{
Q_OBJECT // This macro is needed for Qt to handle slots and signals
Q_OBJECT // This macro is needed for Qt to handle slots and signals

public : LoggingLevelConfigureRvizPlugin(QWidget * parent = nullptr);
public : LoggingLevelConfigureRvizPlugin(QWidget * parent = nullptr);
void onInitialize() override;
void save(rviz_common::Config config) const override;
void load(const rviz_common::Config & config) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,9 @@ def control(self):

# [2] publish cmd
control_cmd_msg = AckermannControlCommand()
control_cmd_msg.stamp = (
control_cmd_msg.lateral.stamp
) = control_cmd_msg.longitudinal.stamp = (self.get_clock().now().to_msg())
control_cmd_msg.stamp = control_cmd_msg.lateral.stamp = (
control_cmd_msg.longitudinal.stamp
) = (self.get_clock().now().to_msg())
control_cmd_msg.longitudinal.velocity = trajectory_longitudinal_velocity[nearestIndex]
control_cmd_msg.longitudinal.acceleration = cmd[0]
control_cmd_msg.lateral.steering_tire_angle = cmd[1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ def load_rosbag(self, rosbag2_path: str):
objects_topic = (
"/perception/object_recognition/detection/objects"
if self.args.detected_object
else "/perception/object_recognition/tracking/objects"
if self.args.tracked_object
else "/perception/object_recognition/objects"
else (
"/perception/object_recognition/tracking/objects"
if self.args.tracked_object
else "/perception/object_recognition/objects"
)
)
ego_odom_topic = "/localization/kinematic_state"
traffic_signals_topic = "/perception/traffic_light_recognition/traffic_signals"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def __init__(self, args):
self.perv_objects_msg, self.prev_traffic_signals_msg = self.find_topics_by_timestamp(
pose_timestamp
)
self.memorized_original_objects_msg = (
self.memorized_noised_objects_msg
) = self.perv_objects_msg
self.memorized_original_objects_msg = self.memorized_noised_objects_msg = (
self.perv_objects_msg
)

# start main timer callback

Expand Down
Loading