* 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
* fix(format): run code-format.sh
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(astyle): add the 3rd party source file to exclude list
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(built_in_font_gen.py): change the output format from bin to lvgl
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(generate_all.py): improve the builtin font generation
1.run astyle on the generated source files
2.copy these files to src/font folder
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(font): regenerate all builtin font files
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(conf): ensure the template and generated file conform the coding style
and remove lv_conf_internal.h from the excluding list of code-format.cfg
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(conf): regenerate lv_conf_internal.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>