Skip to content

Commit

Permalink
Fix CMakeFormat task
Browse files Browse the repository at this point in the history
Batch tasks need to be pased to run_batch().
  • Loading branch information
calcmogul committed Nov 30, 2023
1 parent 1469a0d commit c0faa0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wpiformat/wpiformat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ def main():
task_pipeline = [
BraceComment(),
CIdentList(),
CMakeFormat(),
EofNewline(),
GTestName(),
IncludeGuard(),
Expand All @@ -501,7 +500,7 @@ def main():
run_pipeline(task_pipeline, args, files)

# Lint is run last since previous tasks can affect its output.
task_pipeline = [PyFormat(), Lint()]
task_pipeline = [CMakeFormat(), PyFormat(), Lint()]
run_batch(task_pipeline, args, file_batches)

# ClangTidy is run last of all; it needs the actual files
Expand Down

0 comments on commit c0faa0f

Please sign in to comment.