Skip to content

Commit 2eba400

Browse files
authored
Merge pull request #240 from humanoid-path-planner/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 96060be + 7b13c90 commit 2eba400

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autoupdate_branch: devel
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.7.4
5+
rev: v0.8.0
66
hooks:
77
- id: ruff
88
args:
@@ -14,12 +14,12 @@ repos:
1414
hooks:
1515
- id: cmake-format
1616
- repo: https://github.com/pappasam/toml-sort
17-
rev: v0.24.1
17+
rev: v0.24.2
1818
hooks:
1919
- id: toml-sort-fix
2020
exclude: poetry.lock
2121
- repo: https://github.com/pre-commit/mirrors-clang-format
22-
rev: v19.1.3
22+
rev: v19.1.4
2323
hooks:
2424
- id: clang-format
2525
args:

src/hpp/corbaserver/ompl_benchmark_statistics.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,14 @@ def plotStatistics(dbname, fname):
587587
experiments = c.fetchall()
588588
for experiment in experiments:
589589
c.execute(
590-
"""SELECT count(*) FROM runs WHERE runs.experimentid = %d
590+
f"""SELECT count(*) FROM runs WHERE runs.experimentid = {experiment[0]}
591591
GROUP BY runs.plannerid"""
592-
% experiment[0]
593592
)
594593
numRuns = [run[0] for run in c.fetchall()]
595594
numRuns = numRuns[0] if len(set(numRuns)) == 1 else ",".join(numRuns)
596595

597596
plt.figtext(pagex, pagey, f'Experiment "{experiment[1]}"')
598-
plt.figtext(pagex, pagey - 0.05, "Number of averaged runs: %d" % numRuns)
597+
plt.figtext(pagex, pagey - 0.05, f"Number of averaged runs: {numRuns}")
599598
plt.figtext(
600599
pagex, pagey - 0.10, f"Time limit per run: {experiment[2]:g} seconds"
601600
)

0 commit comments

Comments
 (0)