diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-06-01 15:41:47 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-06-01 15:41:47 +1000 |
| commit | dd27c3530432ea0b09f01e604bf577f31d8ef841 (patch) | |
| tree | bbf86cf81a78f0ff0b07f31f1c390db473f26fd3 /lib/lvgl/.pre-commit-config.yaml | |
| parent | 6fd588e970470b15936187980829916d0dbe77bb (diff) | |
| download | tangara-fw-dd27c3530432ea0b09f01e604bf577f31d8ef841.tar.gz | |
convert lvgl from submodule to a plain old directory
Diffstat (limited to 'lib/lvgl/.pre-commit-config.yaml')
| m--------- | lib/lvgl | 0 | ||||
| -rw-r--r-- | lib/lvgl/.pre-commit-config.yaml | 30 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/lvgl b/lib/lvgl deleted file mode 160000 -Subproject 0732400e7b564dd0e7dc4a924619d8e19c5b23a diff --git a/lib/lvgl/.pre-commit-config.yaml b/lib/lvgl/.pre-commit-config.yaml new file mode 100644 index 00000000..9d8088a8 --- /dev/null +++ b/lib/lvgl/.pre-commit-config.yaml @@ -0,0 +1,30 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + +- repo: local + hooks: + # Run astyle over the staged files with c and h extension found in the directories + # listed in the files regex pattern. Ignoring the files in the exclude pattern. + - id: format-source + name: Formatting source files + entry: astyle --options=scripts/code-format.cfg --ignore-exclude-errors + stages: [ commit ] + language: system + pass_filenames: true + verbose: true + files: | + (?x)^( + src/ | + tests/src/test_cases/ + ) + exclude: | + (?x)^( + src/extra/libs/ | + src/lv_conf_internal.h + ) + types_or: ["c", "header"]
\ No newline at end of file |
