Skip to content

Commit d2a5e1b

Browse files
awf-autoware-bot[bot]github-actionspre-commit-ci[bot]
authored
chore: sync files (#61)
* chore: sync files 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 9b4b222 commit d2a5e1b

File tree

6 files changed

+24
-27
lines changed

6 files changed

+24
-27
lines changed

.github/workflows/build-and-test-differential.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060
with:
6161
rosdistro: ${{ matrix.rosdistro }}
6262
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
63-
build-depends-repos: build_depends.repos
6463

6564
- name: Test
6665
id: test
@@ -69,7 +68,6 @@ jobs:
6968
with:
7069
rosdistro: ${{ matrix.rosdistro }}
7170
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
72-
build-depends-repos: build_depends.repos
7371

7472
- name: Upload coverage to CodeCov
7573
if: ${{ steps.test.outputs.coverage-report-files != '' }}

.github/workflows/build-and-test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848
with:
4949
rosdistro: ${{ matrix.rosdistro }}
5050
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
51-
build-depends-repos: build_depends.repos
5251

5352
- name: Test
5453
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
@@ -57,7 +56,6 @@ jobs:
5756
with:
5857
rosdistro: ${{ matrix.rosdistro }}
5958
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
60-
build-depends-repos: build_depends.repos
6159

6260
- name: Upload coverage to CodeCov
6361
if: ${{ steps.test.outputs.coverage-report-files != '' }}

.pre-commit-config.yaml

Lines changed: 13 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.44.0
29+
rev: v0.43.0
3030
hooks:
3131
- id: markdownlint
3232
args: [-c, .markdownlint.yaml, --fix]
@@ -37,10 +37,15 @@ repos:
3737
- id: prettier
3838

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

44+
- repo: https://github.com/autowarefoundation/autoware-guideline-check
45+
rev: 0.1.0
46+
hooks:
47+
- id: check-package-depends
48+
4449
- repo: https://github.com/tier4/pre-commit-hooks-ros
4550
rev: v0.10.0
4651
hooks:
@@ -57,37 +62,37 @@ repos:
5762
- id: shellcheck
5863

5964
- repo: https://github.com/scop/pre-commit-shfmt
60-
rev: v3.11.0-1
65+
rev: v3.10.0-2
6166
hooks:
6267
- id: shfmt
6368
args: [-w, -s, -i=4]
6469

6570
- repo: https://github.com/pycqa/isort
66-
rev: 6.0.1
71+
rev: 5.13.2
6772
hooks:
6873
- id: isort
6974

7075
- repo: https://github.com/psf/black
71-
rev: 25.1.0
76+
rev: 24.10.0
7277
hooks:
7378
- id: black
7479
args: [--line-length=100]
7580

7681
- repo: https://github.com/pre-commit/mirrors-clang-format
77-
rev: v20.1.0
82+
rev: v19.1.6
7883
hooks:
7984
- id: clang-format
8085
types_or: [c++, c, cuda]
8186

8287
- repo: https://github.com/cpplint/cpplint
83-
rev: 2.0.1
88+
rev: 2.0.0
8489
hooks:
8590
- id: cpplint
8691
args: [--quiet]
8792
exclude: .cu
8893

8994
- repo: https://github.com/python-jsonschema/check-jsonschema
90-
rev: 0.32.1
95+
rev: 0.30.0
9196
hooks:
9297
- id: check-metaschema
9398
files: ^.+/schema/.*schema\.json$

autoware_utils_debug/src/time_keeper.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,9 @@ 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(
169-
fmt::format(
170-
"You must call end_track({}) first, but end_track({}) is called",
171-
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));
172171
}
173172
const double processing_time = stop_watch_.toc(func_name);
174173
current_time_node_->set_time(processing_time);
@@ -182,10 +181,8 @@ void TimeKeeper::end_track(const std::string & func_name)
182181
void TimeKeeper::report()
183182
{
184183
if (current_time_node_ != nullptr) {
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()));
184+
throw std::runtime_error(fmt::format(
185+
"You must call end_track({}) first, but report() is called", current_time_node_->get_name()));
189186
}
190187
for (const auto & reporter : reporters_) {
191188
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: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,11 @@ 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(
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()}});
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()}});
368367
}
369368

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

0 commit comments

Comments
 (0)