mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
a83cae012d
* Add initial pre-commit configuration for code formatting * chore: Move --recursive switch from cfg file to script * pre-commit: Update format-source hook to use code-format.cfg Also remove the code-format-per-file.cfg file as it's now unused * docs: Add section about pre-commit
9 lines
355 B
Python
Executable File
9 lines
355 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
|
|
os.system('astyle --options=code-format.cfg --recursive "../src/*.c,*.h"')
|
|
os.system('astyle --options=code-format.cfg --recursive "../demos/*.c,*.h"')
|
|
os.system('astyle --options=code-format.cfg --recursive "../examples/*.c,*.h"')
|
|
os.system('astyle --options=code-format.cfg --recursive "../tests/src/test_cases/*.c"')
|