diff options
author | guillaume.lambert <guillaume.lambert@orange.com> | 2022-07-07 19:59:38 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-03-27 18:00:24 +0200 |
commit | 43823bba039100d09a0820c820cd725e1d14b69e (patch) | |
tree | f0da9e8f3e1eb1da05fd7f35ec584a45562f4569 /.pre-commit-config.yaml | |
parent | f4e7eb0eb220b4504c49470c894e8ffcf483f978 (diff) |
Use pre-commit in CI to fix trailing blanks & tabs
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I7e2d918ced690624df44ef8a84df865aa8505b40
(cherry picked from commit beaf6055d77b00dc4ff90165512d2877afc7b79d)
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..323386c88 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: trailing-whitespace + exclude: '.patch$' + # trailing blanks shall not preferably be fixed in patch files + + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.4.2 + hooks: + - id: remove-tabs + stages: [commit] + exclude: '^(.git/|docs/make.bat|docs/Makefile|)' + |