From dc1e4c87b05c8e1e5c9561dc1d5289d1c37df657 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 18 Jul 2022 21:28:16 +0800 Subject: fix(format): check more source code (#3493) and sync .pre-commit-config.yaml with scripts/code-format.py Signed-off-by: Xiang Xiao --- scripts/code-format.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/code-format.py') diff --git a/scripts/code-format.py b/scripts/code-format.py index fc126c8df..91c0128d9 100755 --- a/scripts/code-format.py +++ b/scripts/code-format.py @@ -2,14 +2,14 @@ import os -print("Formatting src") -os.system('astyle --options=code-format.cfg --recursive "../src/*.c,*.h"') - print("\nFormatting demos") os.system('astyle --options=code-format.cfg --recursive "../demos/*.c,*.h"') print("\nFormatting examples") os.system('astyle --options=code-format.cfg --recursive "../examples/*.c,*.h"') +print("Formatting src") +os.system('astyle --options=code-format.cfg --recursive "../src/*.c,*.h"') + print("\nFormatting tests") -os.system('astyle --options=code-format.cfg --recursive "../tests/src/test_cases/*.c"') +os.system('astyle --options=code-format.cfg --recursive "../tests/*.c,*.h"') -- cgit v1.2.3