Skip to content

Commit 9e4be19

Browse files
authored
Merge pull request #18 from tier4/pre-commit-ci-update-config
ci(pre-commit): autoupdate
2 parents ebc4a8d + c356b65 commit 9e4be19

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.1.0
7+
rev: v4.5.0
88
hooks:
99
- id: check-json
1010
- id: check-merge-conflict
@@ -18,51 +18,51 @@ repos:
1818
args: [--markdown-linebreak-ext=md]
1919

2020
- repo: https://github.com/igorshubovych/markdownlint-cli
21-
rev: v0.30.0
21+
rev: v0.37.0
2222
hooks:
2323
- id: markdownlint
2424
args: [-c, .markdownlint.yaml, --fix]
2525

2626
- repo: https://github.com/pre-commit/mirrors-prettier
27-
rev: v2.5.1
27+
rev: v4.0.0-alpha.3
2828
hooks:
2929
- id: prettier
3030

3131
- repo: https://github.com/adrienverge/yamllint
32-
rev: v1.26.3
32+
rev: v1.33.0
3333
hooks:
3434
- id: yamllint
3535

3636
- repo: https://github.com/tier4/pre-commit-hooks-ros
37-
rev: v0.4.0
37+
rev: v0.8.0
3838
hooks:
3939
- id: prettier-package-xml
4040
- id: sort-package-xml
4141

4242
- repo: https://github.com/shellcheck-py/shellcheck-py
43-
rev: v0.8.0.3
43+
rev: v0.9.0.6
4444
hooks:
4545
- id: shellcheck
4646

4747
- repo: https://github.com/scop/pre-commit-shfmt
48-
rev: v3.4.2-1
48+
rev: v3.7.0-4
4949
hooks:
5050
- id: shfmt
5151
args: [-w, -s, -i=4]
5252

5353
- repo: https://github.com/pycqa/isort
54-
rev: 5.10.1
54+
rev: 5.12.0
5555
hooks:
5656
- id: isort
5757

5858
- repo: https://github.com/psf/black
59-
rev: 22.1.0
59+
rev: 23.11.0
6060
hooks:
6161
- id: black
6262
args: [--line-length=100]
6363

6464
- repo: https://github.com/PyCQA/flake8
65-
rev: 4.0.1
65+
rev: 6.1.0
6666
hooks:
6767
- id: flake8
6868
additional_dependencies:
@@ -78,12 +78,12 @@ repos:
7878
]
7979

8080
- repo: https://github.com/pre-commit/mirrors-clang-format
81-
rev: v13.0.0
81+
rev: v17.0.6
8282
hooks:
8383
- id: clang-format
8484

8585
- repo: https://github.com/cpplint/cpplint
86-
rev: 1.5.5
86+
rev: 1.6.1
8787
hooks:
8888
- id: cpplint
8989
args: [--quiet]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ This repository provides a ROS2 package for generating sensor trigger signals on
1414

1515
## Installation
1616

17-
1. Create or change into your workspace directory, and execute the following:
17+
1. Create or change into your workspace directory, and execute the following:
1818

1919
```bash
2020
mkdir -p src
2121
git clone git@github.com:tier4/sensor_trigger.git src
2222
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to sensor_trigger
2323
```
2424

25-
2. The sensor trigger node requires as close to real-time operation as possible to maintain reliable trigger timing under heavy CPU load. If this is required, it is recommended to allow thread schedule priority setting to the ROS2 user by adding the following line to `/etc/security/limits.conf`:
25+
2. The sensor trigger node requires as close to real-time operation as possible to maintain reliable trigger timing under heavy CPU load. If this is required, it is recommended to allow thread schedule priority setting to the ROS2 user by adding the following line to `/etc/security/limits.conf`:
2626

2727
```
2828
<username> - rtprio 98

src/jetson_gpio.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
#include <sensor_trigger/jetson_gpio.hpp>
1616

17-
#include <cstdio>
1817
#include <sys/stat.h>
1918

19+
#include <cstdio>
20+
2021
namespace jetson_gpio
2122
{
2223
JetsonGpio::~JetsonGpio()
@@ -68,11 +69,11 @@ bool JetsonGpio::export_gpio()
6869

6970
// Check target GPIO is available (not opened) first.
7071
// If it is unavailable, close the port and try to open it.
71-
std::string target_gpio = std::string(SYSFS_GPIO_DIR) + std::string("/gpio")
72-
+ std::to_string(gpio_);
72+
std::string target_gpio =
73+
std::string(SYSFS_GPIO_DIR) + std::string("/gpio") + std::to_string(gpio_);
7374
struct stat return_status;
7475
if (stat(target_gpio.c_str(), &return_status) == 0) {
75-
unexport_gpio();
76+
unexport_gpio();
7677
}
7778

7879
file_descriptor = open(SYSFS_GPIO_DIR "/export", O_WRONLY);

0 commit comments

Comments
 (0)