Skip to content

Commit 59095ef

Browse files
ci(pre-commit): autoupdate (#124)
* ci(pre-commit): autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](pre-commit/pre-commit-hooks@v4.0.1...v4.1.0) - [github.com/pre-commit/mirrors-prettier: v2.5.0 → v2.5.1](pre-commit/mirrors-prettier@v2.5.0...v2.5.1) - [github.com/shellcheck-py/shellcheck-py: v0.8.0.1 → v0.8.0.3](shellcheck-py/shellcheck-py@v0.8.0.1...v0.8.0.3) - [github.com/scop/pre-commit-shfmt: v3.4.1-1 → v3.4.2-1](scop/pre-commit-shfmt@v3.4.1-1...v3.4.2-1) - [github.com/psf/black: 21.11b1 → 22.1.0](psf/black@21.11b1...22.1.0) - [github.com/pre-commit/mirrors-clang-format: v12.0.1 → v13.0.0](pre-commit/mirrors-clang-format@v12.0.1...v13.0.0) * ci(pre-commit): autofix Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 04343b6 commit 59095ef

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.pre-commit-config.yaml

+6-6
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.0.1
7+
rev: v4.1.0
88
hooks:
99
- id: check-json
1010
- id: check-merge-conflict
@@ -24,7 +24,7 @@ repos:
2424
args: [-c, .markdownlint.yaml, --fix]
2525

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

@@ -40,12 +40,12 @@ repos:
4040
- id: sort-package-xml
4141

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

4747
- repo: https://github.com/scop/pre-commit-shfmt
48-
rev: v3.4.1-1
48+
rev: v3.4.2-1
4949
hooks:
5050
- id: shfmt
5151
args: [-w, -s, -i=4]
@@ -56,7 +56,7 @@ repos:
5656
- id: isort
5757

5858
- repo: https://github.com/psf/black
59-
rev: 21.11b1
59+
rev: 22.1.0
6060
hooks:
6161
- id: black
6262
args: [--line-length=100]
@@ -78,7 +78,7 @@ repos:
7878
]
7979

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

planning/motion_velocity_smoother/scripts/trajectory_visualizer.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def CalcArcLength(self, traj):
390390
p1 = traj.points[i]
391391
dx = p1.pose.position.x - p0.pose.position.x
392392
dy = p1.pose.position.y - p0.pose.position.y
393-
ds = np.sqrt(dx ** 2 + dy ** 2)
393+
ds = np.sqrt(dx**2 + dy**2)
394394
s_sum += ds
395395
s_arr.append(s_sum)
396396
return s_arr
@@ -408,7 +408,7 @@ def CalcArcLengthPathWLid(self, traj):
408408
p1 = traj.points[i].point
409409
dx = p1.pose.position.x - p0.pose.position.x
410410
dy = p1.pose.position.y - p0.pose.position.y
411-
ds = np.sqrt(dx ** 2 + dy ** 2)
411+
ds = np.sqrt(dx**2 + dy**2)
412412
s_sum += ds
413413
s_arr.append(s_sum)
414414
return s_arr
@@ -426,7 +426,7 @@ def CalcArcLengthPath(self, traj):
426426
p1 = traj.points[i]
427427
dx = p1.pose.position.x - p0.pose.position.x
428428
dy = p1.pose.position.y - p0.pose.position.y
429-
ds = np.sqrt(dx ** 2 + dy ** 2)
429+
ds = np.sqrt(dx**2 + dy**2)
430430
s_sum += ds
431431
s_arr.append(s_sum)
432432
return s_arr
@@ -459,7 +459,7 @@ def CalcAcceleration(self, traj):
459459
v = 0.5 * (v1 + v0)
460460
dx = p1.pose.position.x - p0.pose.position.x
461461
dy = p1.pose.position.y - p0.pose.position.y
462-
ds = np.sqrt(dx ** 2 + dy ** 2)
462+
ds = np.sqrt(dx**2 + dy**2)
463463
dt = ds / max(abs(v), 0.001)
464464
a = (v1 - v0) / dt
465465
a_arr.append(a)
@@ -480,11 +480,11 @@ def CalcJerk(self, traj):
480480

481481
dx0 = p1.pose.position.x - p0.pose.position.x
482482
dy0 = p1.pose.position.y - p0.pose.position.y
483-
ds0 = np.sqrt(dx0 ** 2 + dy0 ** 2)
483+
ds0 = np.sqrt(dx0**2 + dy0**2)
484484

485485
dx1 = p2.pose.position.x - p1.pose.position.x
486486
dy1 = p2.pose.position.y - p1.pose.position.y
487-
ds1 = np.sqrt(dx1 ** 2 + dy1 ** 2)
487+
ds1 = np.sqrt(dx1**2 + dy1**2)
488488

489489
dt0 = ds0 / max(abs(0.5 * (v1 + v0)), 0.001)
490490
dt1 = ds1 / max(abs(0.5 * (v2 + v1)), 0.001)

0 commit comments

Comments
 (0)