Skip to content

Commit de90e59

Browse files
ci(pre-commit): autoupdate (#8949)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: M. Fatih Cırıt <mfc@autoware.org>
1 parent 3106111 commit de90e59

File tree

8 files changed

+21
-20
lines changed

8 files changed

+21
-20
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ci:
77

88
repos:
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.6.0
10+
rev: v5.0.0
1111
hooks:
1212
- id: check-json
1313
- id: check-merge-conflict
@@ -22,7 +22,7 @@ repos:
2222
args: [--markdown-linebreak-ext=md]
2323

2424
- repo: https://github.com/igorshubovych/markdownlint-cli
25-
rev: v0.41.0
25+
rev: v0.43.0
2626
hooks:
2727
- id: markdownlint
2828
args: [-c, .markdownlint.yaml, --fix]
@@ -53,7 +53,7 @@ repos:
5353
- id: shellcheck
5454

5555
- repo: https://github.com/scop/pre-commit-shfmt
56-
rev: v3.9.0-1
56+
rev: v3.10.0-2
5757
hooks:
5858
- id: shfmt
5959
args: [-w, -s, -i=4]
@@ -64,13 +64,13 @@ repos:
6464
- id: isort
6565

6666
- repo: https://github.com/psf/black
67-
rev: 24.8.0
67+
rev: 24.10.0
6868
hooks:
6969
- id: black
7070
args: [--line-length=100]
7171

7272
- repo: https://github.com/pre-commit/mirrors-clang-format
73-
rev: v18.1.8
73+
rev: v19.1.4
7474
hooks:
7575
- id: clang-format
7676
types_or: [c++, c, cuda]
@@ -83,7 +83,7 @@ repos:
8383
exclude: .cu
8484

8585
- repo: https://github.com/python-jsonschema/check-jsonschema
86-
rev: 0.29.2
86+
rev: 0.30.0
8787
hooks:
8888
- id: check-metaschema
8989
files: ^.+/schema/.*schema\.json$

perception/autoware_multi_object_tracker/lib/tracker/motion_model/ctrv_motion_model.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ bool CTRVMotionModel::predictStateStep(const double dt, KalmanFilter & ekf) cons
276276
Eigen::MatrixXd X_next_t(DIM, 1); // predicted state
277277
X_next_t(IDX::X) = X_t(IDX::X) + X_t(IDX::VEL) * cos_yaw * dt; // dx = v * cos(yaw)
278278
X_next_t(IDX::Y) = X_t(IDX::Y) + X_t(IDX::VEL) * sin_yaw * dt; // dy = v * sin(yaw)
279-
X_next_t(IDX::YAW) = X_t(IDX::YAW) + (X_t(IDX::WZ)) * dt; // dyaw = omega
279+
X_next_t(IDX::YAW) = X_t(IDX::YAW) + (X_t(IDX::WZ))*dt; // dyaw = omega
280280
X_next_t(IDX::VEL) = X_t(IDX::VEL);
281281
X_next_t(IDX::WZ) = X_t(IDX::WZ);
282282

planning/autoware_surround_obstacle_checker/src/node.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ std::optional<geometry_msgs::msg::TransformStamped> SurroundObstacleCheckerNode:
378378

379379
auto SurroundObstacleCheckerNode::isStopRequired(
380380
const bool is_obstacle_found, const bool is_vehicle_stopped, const State & state,
381-
const std::optional<rclcpp::Time> & last_obstacle_found_time,
382-
const double time_threshold) const -> std::pair<bool, std::optional<rclcpp::Time>>
381+
const std::optional<rclcpp::Time> & last_obstacle_found_time, const double time_threshold) const
382+
-> std::pair<bool, std::optional<rclcpp::Time>>
383383
{
384384
if (!is_vehicle_stopped) {
385385
return std::make_pair(false, std::nullopt);

planning/autoware_surround_obstacle_checker/src/node.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class SurroundObstacleCheckerNode : public rclcpp::Node
8989

9090
auto isStopRequired(
9191
const bool is_obstacle_found, const bool is_vehicle_stopped, const State & state,
92-
const std::optional<rclcpp::Time> & last_obstacle_found_time,
93-
const double time_threshold) const -> std::pair<bool, std::optional<rclcpp::Time>>;
92+
const std::optional<rclcpp::Time> & last_obstacle_found_time, const double time_threshold) const
93+
-> std::pair<bool, std::optional<rclcpp::Time>>;
9494

9595
// ros
9696
mutable tf2_ros::Buffer tf_buffer_{get_clock()};

planning/autoware_surround_obstacle_checker/test/test_surround_obstacle_checker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class SurroundObstacleCheckerNodeTest : public ::testing::Test
4848

4949
auto isStopRequired(
5050
const bool is_obstacle_found, const bool is_vehicle_stopped, const State & state,
51-
const std::optional<rclcpp::Time> & last_obstacle_found_time,
52-
const double time_threshold) const -> std::pair<bool, std::optional<rclcpp::Time>>
51+
const std::optional<rclcpp::Time> & last_obstacle_found_time, const double time_threshold) const
52+
-> std::pair<bool, std::optional<rclcpp::Time>>
5353
{
5454
return node_->isStopRequired(
5555
is_obstacle_found, is_vehicle_stopped, state, last_obstacle_found_time, time_threshold);

planning/behavior_velocity_planner/autoware_behavior_velocity_traffic_light_module/src/utils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ auto getOffsetPoint(const Eigen::Vector2d & src, const Eigen::Vector2d & dst, co
3232
}
3333

3434
auto findNearestCollisionPoint(
35-
const LineString2d & line1, const LineString2d & line2,
36-
const Point2d & origin) -> std::optional<Point2d>
35+
const LineString2d & line1, const LineString2d & line2, const Point2d & origin)
36+
-> std::optional<Point2d>
3737
{
3838
std::vector<Point2d> collision_points;
3939
bg::intersection(line1, line2, collision_points);

planning/behavior_velocity_planner/autoware_behavior_velocity_traffic_light_module/src/utils.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ auto getOffsetPoint(const Eigen::Vector2d & src, const Eigen::Vector2d & dst, co
4848
* @return intersection point. if there is no intersection point, return std::nullopt.
4949
*/
5050
auto findNearestCollisionPoint(
51-
const LineString2d & line1, const LineString2d & line2,
52-
const Point2d & origin) -> std::optional<Point2d>;
51+
const LineString2d & line1, const LineString2d & line2, const Point2d & origin)
52+
-> std::optional<Point2d>;
5353

5454
/**
5555
* @brief find intersection point between path and stop line and return the point.

vehicle/autoware_accel_brake_map_calibrator/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,11 @@ Update by Recursive Least Squares(RLS) method using data close enough to each gr
212212
#### Parameters
213213

214214
Data selection is determined by the following thresholds.
215-
| Name | Default Value |
215+
216+
| Name | Default Value |
216217
| ----------------------- | ------------- |
217-
| velocity_diff_threshold | 0.556 |
218-
| pedal_diff_threshold | 0.03 |
218+
| velocity_diff_threshold | 0.556 |
219+
| pedal_diff_threshold | 0.03 |
219220

220221
#### Update formula
221222

0 commit comments

Comments
 (0)