Skip to content

Commit

Permalink
ci(pre-commit): autoupdate (#174)
Browse files Browse the repository at this point in the history
* ci(pre-commit): autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
- [github.com/igorshubovych/markdownlint-cli: v0.40.0 → v0.44.0](igorshubovych/markdownlint-cli@v0.40.0...v0.44.0)
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.8)
- [github.com/tier4/pre-commit-hooks-ros: v0.8.0 → v0.10.0](tier4/pre-commit-hooks-ros@v0.8.0...v0.10.0)
- [github.com/scop/pre-commit-shfmt: v3.8.0-1 → v3.10.0-2](scop/pre-commit-shfmt@v3.8.0-1...v3.10.0-2)
- [github.com/pycqa/isort: 5.13.2 → 6.0.0](PyCQA/isort@5.13.2...6.0.0)
- [github.com/psf/black: 24.4.2 → 25.1.0](psf/black@24.4.2...25.1.0)
- [github.com/PyCQA/flake8: 7.0.0 → 7.1.1](PyCQA/flake8@7.0.0...7.1.1)
- [github.com/pre-commit/mirrors-clang-format: v18.1.5 → v19.1.7](pre-commit/mirrors-clang-format@v18.1.5...v19.1.7)
- [github.com/cpplint/cpplint: 1.6.1 → 2.0.0](cpplint/cpplint@1.6.1...2.0.0)

* ci(pre-commit): autofix

* chore: add missing includes reported by the new, stricter include-what-you-use rule

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>

---------

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Max SCHMELLER <max.schmeller@tier4.jp>
  • Loading branch information
pre-commit-ci[bot] and mojomex authored Feb 4, 2025
1 parent f4da047 commit 86fe233
Show file tree
Hide file tree
Showing 52 changed files with 194 additions and 17 deletions.
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

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

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

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

Expand All @@ -35,7 +35,7 @@ repos:
- id: yamllint

- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.8.0
rev: v0.10.0
hooks:
- id: prettier-package-xml
- id: sort-package-xml
Expand All @@ -46,24 +46,24 @@ repos:
- id: shellcheck

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

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

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

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -79,17 +79,17 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.5
rev: v19.1.7
hooks:
- id: clang-format

- repo: https://github.com/cpplint/cpplint
rev: 1.6.1
rev: 2.0.0
hooks:
- id: cpplint
# runtime/arrays uses the name of the variable to determine const-ness.
# This does not play well with our naming conventions
args: [--quiet, --filter=-runtime/arrays]
args: [--quiet, '--filter=-runtime/arrays,-build/c++17,-readability/casting']
exclude: .cu

exclude: .svg
4 changes: 4 additions & 0 deletions nebula_common/src/velodyne/velodyne_calibration_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

#include <fstream>
#include <iostream>
#include <limits>
#include <map>
#include <string>
#include <utility>

#ifdef HAVE_NEW_YAMLCPP
namespace YAML
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include <nebula_common/continental/continental_ars548.hpp>

#include <cmath>
#include <memory>
#include <string>
#include <utility>
#include <vector>

namespace nebula::drivers::continental_ars548
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
#include <boost/algorithm/string/join.hpp>

#include <cmath>
#include <iostream>
#include <memory>
#include <string>
#include <utility>
#include <vector>

namespace nebula::drivers::continental_srr520
{
Expand Down
4 changes: 4 additions & 0 deletions nebula_decoders/src/nebula_decoders_hesai/hesai_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include "nebula_decoders/nebula_decoders_hesai/decoders/pandar_xt32.hpp"
#include "nebula_decoders/nebula_decoders_hesai/decoders/pandar_xt32m.hpp"

#include <memory>
#include <tuple>
#include <vector>

// #define WITH_DEBUG_STD_COUT_HESAI_CLIENT // Use std::cout messages for debugging

namespace nebula::drivers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include "nebula_decoders/nebula_decoders_robosense/decoders/helios.hpp"
#include "nebula_decoders/nebula_decoders_robosense/decoders/robosense_decoder.hpp"

#include <memory>
#include <tuple>
#include <vector>

namespace nebula::drivers
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
#include "nebula_decoders/nebula_decoders_robosense/decoders/helios.hpp"
#include "nebula_decoders/nebula_decoders_robosense/decoders/robosense_info_decoder.hpp"

#include <map>
#include <memory>
#include <string>
#include <vector>

namespace nebula::drivers
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
#include <angles/angles.h>

#include <cmath>
#include <memory>
#include <tuple>
#include <utility>
#include <vector>

namespace nebula
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
#include <angles/angles.h>

#include <cmath>
#include <memory>
#include <tuple>
#include <utility>
#include <vector>

namespace nebula
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
#include <angles/angles.h>

#include <cmath>
#include <memory>
#include <tuple>
#include <utility>
#include <vector>

namespace nebula
{
Expand Down Expand Up @@ -206,10 +209,8 @@ void Vls128Decoder::unpack(const std::vector<uint8_t> & packet, double packet_se
// azimuth <= sensor_configuration_->cloud_max_angle) ||
(sensor_configuration_->cloud_min_angle > sensor_configuration_->cloud_max_angle)) {
for (size_t j = 0, k = 0; j < g_scans_per_block; j++, k += g_raw_scan_size) {
union two_bytes current_return {
};
union two_bytes other_return {
};
union two_bytes current_return{};
union two_bytes other_return{};
// Distance extraction.
current_return.bytes[0] = current_block.data[k];
current_return.bytes[1] = current_block.data[k + 1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include "nebula_decoders/nebula_decoders_velodyne/decoders/vlp32_decoder.hpp"
#include "nebula_decoders/nebula_decoders_velodyne/decoders/vls128_decoder.hpp"

#include <memory>
#include <tuple>
#include <vector>

namespace nebula::drivers
{
VelodyneDriver::VelodyneDriver(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@

#include <pcl_conversions/pcl_conversions.h>

#include <iostream>
#include <memory>
#include <regex>
#include <string>
#include <vector>

namespace nebula::ros
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#include <rclcpp/rclcpp.hpp>

#include <cstdio>
#include <memory>
#include <string>

int main(int argc, char * argv[])
{
Expand Down
6 changes: 4 additions & 2 deletions nebula_examples/src/hesai/hesai_ros_offline_extract_pcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
#include "rosbag2_storage/storage_options.hpp"

#include <nebula_common/hesai/hesai_common.hpp>
// #include <boost/filesystem/path.hpp>
// #include <boost/filesystem/operations.hpp>

#include <iostream>
#include <memory>
#include <regex>
#include <string>
#include <vector>

namespace nebula::ros
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#include <rclcpp/rclcpp.hpp>

#include <cstdio>
#include <memory>
#include <string>

int main(int argc, char * argv[])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
#include <rosbag2_cpp/writers/sequential_writer.hpp>

#include <cmath>
#include <iostream>
#include <memory>
#include <regex>
#include <string>
#include <vector>

namespace nebula::ros
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#include <rclcpp/rclcpp.hpp>

#include <cstdio>
#include <memory>
#include <string>

int main(int argc, char * argv[])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@

#include <nebula_common/continental/continental_ars548.hpp>

#include <iostream>
#include <memory>
#include <string>
#include <utility>
#include <vector>

namespace nebula::drivers::continental_ars548
{
ContinentalARS548HwInterface::ContinentalARS548HwInterface()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
#include <nebula_common/continental/continental_srr520.hpp>
#include <nebula_common/continental/crc.hpp>

#include <iostream>
#include <limits>
#include <memory>
#include <sstream>
#include <string>
#include <utility>

namespace nebula::drivers::continental_srr520
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@
#include <boost/asio/socket_base.hpp>

#include <cassert>
#include <iostream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <thread>
#include <vector>

// #define WITH_DEBUG_STDOUT_HESAI_HW_INTERFACE

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright 2024 TIER IV, Inc.

#include "nebula_hw_interfaces/nebula_hw_interfaces_robosense/robosense_hw_interface.hpp"

#include <iostream>
#include <memory>
#include <string>
#include <utility>
namespace nebula::drivers
{
RobosenseHwInterface::RobosenseHwInterface()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#include "nebula_hw_interfaces/nebula_hw_interfaces_velodyne/velodyne_hw_interface.hpp"

#include <iostream>
#include <memory>
#include <string>
#include <utility>

namespace nebula::drivers
{
VelodyneHwInterface::VelodyneHwInterface()
Expand Down
1 change: 1 addition & 0 deletions nebula_hw_interfaces/test/common/test_udp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <optional>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace nebula::drivers::connections
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

#include <pcl_conversions/pcl_conversions.h>

#include <algorithm>
#include <memory>
#include <string>
#include <unordered_set>
#include <utility>

namespace nebula::ros
{
ContinentalARS548DecoderWrapper::ContinentalARS548DecoderWrapper(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <tf2_ros/buffer.h>
#include <tf2_ros/transform_listener.h>

#include <memory>

namespace nebula::ros
{

Expand Down
6 changes: 6 additions & 0 deletions nebula_ros/src/continental/continental_ars548_ros_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

#include <nebula_common/util/string_conversions.hpp>

#include <cstdio>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#pragma clang diagnostic ignored "-Wbitwise-instead-of-logical"

namespace nebula::ros
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

#include <pcl_conversions/pcl_conversions.h>

#include <memory>
#include <unordered_set>
#include <utility>

namespace nebula::ros
{
ContinentalSRR520DecoderWrapper::ContinentalSRR520DecoderWrapper(
Expand Down
Loading

0 comments on commit 86fe233

Please sign in to comment.