aboutsummaryrefslogtreecommitdiff
path: root/scripts/code-format.py
diff options
context:
space:
mode:
authorXiang Xiao <xiaoxiang@xiaomi.com>2022-07-18 21:28:16 +0800
committerGitHub <noreply@github.com>2022-07-18 15:28:16 +0200
commitdc1e4c87b05c8e1e5c9561dc1d5289d1c37df657 (patch)
tree453d9c63025075e04ecf7d260aa0187f2840ae93 /scripts/code-format.py
parent2fd2b6e4eddfbc0404ebbc34770dd4273c87ac22 (diff)
downloadlvgl-dc1e4c87b05c8e1e5c9561dc1d5289d1c37df657.tar.gz
lvgl-dc1e4c87b05c8e1e5c9561dc1d5289d1c37df657.zip
fix(format): check more source code (#3493)
and sync .pre-commit-config.yaml with scripts/code-format.py Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Diffstat (limited to 'scripts/code-format.py')
-rwxr-xr-xscripts/code-format.py8
1 files changed, 4 insertions, 4 deletions
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"')