From 8ef22f2076bad375441382cba7c25e736ba3ad7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Go=C5=82a=C5=9B?= Date: Mon, 14 Oct 2024 16:22:48 +0200 Subject: [PATCH] Pre-commit fixes & exclude test/approvals from checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filip Gołaś --- .github/workflows/tests.yml | 1 + .pre-commit-config.yaml | 2 ++ test/approvals.bash | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 89ff1ae..e734409 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,3 +26,4 @@ jobs: run: | cd dcu test/approve-ci + \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af8c29c..75ce182 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,3 +45,5 @@ repos: - id: shellcheck args: ["--severity=warning"] exclude: "^src/.*$" +files: | + ^test/approvals/ diff --git a/test/approvals.bash b/test/approvals.bash index 60ae7b4..1adfc54 100644 --- a/test/approvals.bash +++ b/test/approvals.bash @@ -174,4 +174,4 @@ if diff --help | grep -- --color >/dev/null 2>&1; then diff_cmd="diff --unified --strip-trailing-cr -wB --color=always" else diff_cmd="diff --unified --strip-trailing-cr -wB" -fi \ No newline at end of file +fi