Skip to content

Commit 3b0094f

Browse files
awf-autoware-bot[bot]github-actionspre-commit-ci[bot]
authored
ci(pre-commit): autoupdate (#77)
* ci(pre-commit): autoupdate Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * style(pre-commit): autofix --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2fe987a commit 3b0094f

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
args: [--markdown-linebreak-ext=md]
2727

2828
- repo: https://github.com/igorshubovych/markdownlint-cli
29-
rev: v0.43.0
29+
rev: v0.45.0
3030
hooks:
3131
- id: markdownlint
3232
args: [-c, .markdownlint.yaml, --fix]
@@ -37,7 +37,7 @@ repos:
3737
- id: prettier
3838

3939
- repo: https://github.com/adrienverge/yamllint
40-
rev: v1.35.1
40+
rev: v1.37.1
4141
hooks:
4242
- id: yamllint
4343

@@ -62,37 +62,37 @@ repos:
6262
- id: shellcheck
6363

6464
- repo: https://github.com/scop/pre-commit-shfmt
65-
rev: v3.10.0-2
65+
rev: v3.11.0-1
6666
hooks:
6767
- id: shfmt
6868
args: [-w, -s, -i=4]
6969

7070
- repo: https://github.com/pycqa/isort
71-
rev: 5.13.2
71+
rev: 6.0.1
7272
hooks:
7373
- id: isort
7474

7575
- repo: https://github.com/psf/black
76-
rev: 24.10.0
76+
rev: 25.1.0
7777
hooks:
7878
- id: black
7979
args: [--line-length=100]
8080

8181
- repo: https://github.com/pre-commit/mirrors-clang-format
82-
rev: v19.1.6
82+
rev: v20.1.7
8383
hooks:
8484
- id: clang-format
8585
types_or: [c++, c, cuda]
8686

8787
- repo: https://github.com/cpplint/cpplint
88-
rev: 2.0.0
88+
rev: 2.0.2
8989
hooks:
9090
- id: cpplint
9191
args: [--quiet]
9292
exclude: .cu
9393

9494
- repo: https://github.com/python-jsonschema/check-jsonschema
95-
rev: 0.30.0
95+
rev: 0.33.1
9696
hooks:
9797
- id: check-metaschema
9898
files: ^.+/schema/.*schema\.json$

autoware_utils_debug/src/time_keeper.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ void TimeKeeper::end_track(const std::string & func_name)
165165
return;
166166
}
167167
if (current_time_node_->get_name() != func_name) {
168-
throw std::runtime_error(fmt::format(
169-
"You must call end_track({}) first, but end_track({}) is called",
170-
current_time_node_->get_name(), func_name));
168+
throw std::runtime_error(
169+
fmt::format(
170+
"You must call end_track({}) first, but end_track({}) is called",
171+
current_time_node_->get_name(), func_name));
171172
}
172173
const double processing_time = stop_watch_.toc(func_name);
173174
current_time_node_->set_time(processing_time);
@@ -181,8 +182,10 @@ void TimeKeeper::end_track(const std::string & func_name)
181182
void TimeKeeper::report()
182183
{
183184
if (current_time_node_ != nullptr) {
184-
throw std::runtime_error(fmt::format(
185-
"You must call end_track({}) first, but report() is called", current_time_node_->get_name()));
185+
throw std::runtime_error(
186+
fmt::format(
187+
"You must call end_track({}) first, but report() is called",
188+
current_time_node_->get_name()));
186189
}
187190
for (const auto & reporter : reporters_) {
188191
reporter(root_node_);

autoware_utils_geometry/include/autoware_utils_geometry/boost_geometry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ BOOST_GEOMETRY_REGISTER_POINT_2D( // NO
9999
autoware_utils_geometry::Point2d, double, cs::cartesian, x(), y()) // NOLINT
100100
BOOST_GEOMETRY_REGISTER_POINT_3D( // NOLINT
101101
autoware_utils_geometry::Point3d, double, cs::cartesian, x(), y(), z()) // NOLINT
102-
BOOST_GEOMETRY_REGISTER_RING(autoware_utils_geometry::LinearRing2d) // NOLINT
102+
BOOST_GEOMETRY_REGISTER_RING(autoware_utils_geometry::LinearRing2d) // NOLINT
103103

104104
#endif // AUTOWARE_UTILS_GEOMETRY__BOOST_GEOMETRY_HPP_

autoware_utils_geometry/src/geometry/alt_geometry.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,12 @@ std::optional<alt::ConvexPolygon2d> envelope(const alt::Polygon2d & poly)
359359
poly.outer().begin(), std::prev(poly.outer().end()),
360360
[](const auto & a, const auto & b) { return a.y() < b.y(); });
361361

362-
return alt::ConvexPolygon2d::create(alt::PointList2d{
363-
{x_min_vertex->x(), y_min_vertex->y()},
364-
{x_min_vertex->x(), y_max_vertex->y()},
365-
{x_max_vertex->x(), y_max_vertex->y()},
366-
{x_max_vertex->x(), y_min_vertex->y()}});
362+
return alt::ConvexPolygon2d::create(
363+
alt::PointList2d{
364+
{x_min_vertex->x(), y_min_vertex->y()},
365+
{x_min_vertex->x(), y_max_vertex->y()},
366+
{x_max_vertex->x(), y_max_vertex->y()},
367+
{x_max_vertex->x(), y_min_vertex->y()}});
367368
}
368369

369370
bool equals(const alt::Point2d & point1, const alt::Point2d & point2)

0 commit comments

Comments
 (0)