Skip to content

Commit fc4f61f

Browse files
committed
fix: update per ruff format
1 parent ae625e6 commit fc4f61f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

cpp_linter_hooks/clang_tidy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def _positive_int(value: str) -> int:
3636
raise ArgumentTypeError("--jobs must be greater than 0")
3737
return jobs
3838

39+
3940
parser = ArgumentParser()
4041
parser.add_argument("--version", default=DEFAULT_CLANG_TIDY_VERSION)
4142
parser.add_argument("--compile-commands", default=None, dest="compile_commands")

tests/test_clang_tidy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ def test_jobs_one_keeps_single_invocation():
239239
):
240240
run_clang_tidy(["--jobs=1", "-p", "./build", "a.cpp", "b.cpp"])
241241

242-
mock_exec.assert_called_once_with(
243-
["clang-tidy", "-p", "./build", "a.cpp", "b.cpp"]
244-
)
242+
mock_exec.assert_called_once_with(["clang-tidy", "-p", "./build", "a.cpp", "b.cpp"])
245243

246244

247245
def test_jobs_parallelizes_source_files_and_preserves_output_order():

0 commit comments

Comments
 (0)