Skip to content

Commit 902d14d

Browse files
committed
Fix clang format pre-commit.
1 parent e7d6d32 commit 902d14d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: check-merge-conflict
2525
- id: check-symlinks
2626
- id: check-yaml
27-
args: ['--unsafe'] # Fixes errors parsing custom YAML constructors like ur_description's !degrees
27+
args: ["--unsafe"] # Fixes errors parsing custom YAML constructors like ur_description's !degrees
2828
- id: debug-statements
2929
- id: end-of-file-fixer
3030
- id: mixed-line-ending
@@ -40,15 +40,15 @@ repos:
4040
rev: v2.1.0
4141
hooks:
4242
- id: codespell
43-
args: ['--write-changes', '-L', 'atleast'] # Provide a comma-separated list of misspelled words that codespell should ignore (for example: '-L', 'word1,word2,word3').
43+
args: ["--write-changes", "-L", "atleast"] # Provide a comma-separated list of misspelled words that codespell should ignore (for example: '-L', 'word1,word2,word3').
4444
exclude: \.(svg|pyc|stl|dae|lock)$
4545

4646
- repo: local
4747
hooks:
4848
- id: clang-format
4949
name: clang-format
5050
description: Format files with ClangFormat.
51-
entry: clang-format-14
51+
entry: clang-format
5252
language: system
5353
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|m|proto|vert)$
54-
args: ['-fallback-style=none', '-i']
54+
args: ["-fallback-style=none", "-i"]

src/stepit_hardware_tests/src/get_status.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,14 @@ int main(int argc, char* argv[])
4949
CommandLineUtility cli;
5050

5151
std::string port = kUsbPort;
52-
cli.registerHandler(
53-
"--port", [&port](const char* value) { port = value; }, false);
52+
cli.registerHandler("--port", [&port](const char* value) { port = value; }, false);
5453

5554
uint32_t baudrate = kBaudRate;
5655
cli.registerHandler(
5756
"--baudrate", [&baudrate](const char* value) { baudrate = static_cast<uint32_t>(std::stoul(value)); }, false);
5857

5958
double timeout = kTimeout;
60-
cli.registerHandler(
61-
"--timeout", [&timeout](const char* value) { timeout = std::stoi(value); }, false);
59+
cli.registerHandler("--timeout", [&timeout](const char* value) { timeout = std::stoi(value); }, false);
6260

6361
cli.registerHandler("-h", [&]() {
6462
std::cout << "Usage: ./set_relative_pressure [OPTIONS]\n"

0 commit comments

Comments
 (0)