fix(ci): fix indentation of .pre-commit-config.yaml (#4915)

This commit is contained in:
Viktor Szépe
2023-12-03 21:18:34 +01:00
committed by GitHub
parent 998f60e355
commit 86154ab16a
+21 -21
View File
@@ -10,30 +10,30 @@ repos:
hooks: hooks:
# Run astyle over the staged files with c and h extension found in the directories # 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. # listed in the files regex pattern. Ignoring the files in the exclude pattern.
- id: format-source - id: format-source
name: Formatting source files name: Formatting source files
entry: astyle --options=scripts/code-format.cfg --ignore-exclude-errors entry: astyle --options=scripts/code-format.cfg --ignore-exclude-errors
stages: [ commit ] stages: [ commit ]
language: system language: system
pass_filenames: true pass_filenames: true
verbose: true verbose: true
files: | files: |
(?x)^( (?x)^(
demos/ | demos/ |
examples/ | examples/ |
src/ | src/ |
tests/ tests/
) )
exclude: | exclude: |
(?x)^( (?x)^(
src/libs/ | src/libs/ |
src/lv_conf_internal.h src/lv_conf_internal.h
) )
types_or: ["c", "header"] types_or: ["c", "header"]
- repo: https://github.com/crate-ci/typos - repo: https://github.com/crate-ci/typos
rev: v1.16.20 rev: v1.16.20
hooks: hooks:
- id: typos - id: typos
exclude: | exclude: |
(?x)^( (?x)^(
src/libs/ src/libs/