From 2078edf93db9a1fddb877fd0ebde020e6c59976e Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 20 Mar 2023 10:58:28 +0100 Subject: Run pre-commit in the Functest K8s gates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3957dbde922d8ed8edc47d5cf1aee1475f117836 Co-authored-by: Guillaume Lambert Signed-off-by: Cédric Ollivier (cherry picked from commit 8bd1c09890c7c1fff392572de709a0ccc6a283b6) --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .pre-commit-config.yaml (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..a2e0d4c6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +--- +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|)' -- cgit 1.2.3-korg