From b65484d4985693e9cb60388342aff48384ac3525 Mon Sep 17 00:00:00 2001 From: "Weinfurtner Jared (BD/SIX-EU)" Date: Wed, 26 Jul 2023 16:58:59 +0200 Subject: [PATCH] pre-commit hook fixes Signed-off-by: Weinfurtner Jared (BD/SIX-EU) --- .github/workflows/auto-labeler.yml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/stale-issue-cleanup.yml | 2 +- .pre-commit-config.yaml | 11 +++++++++++ .release-please-manifest.json | 2 +- commitlint.config.js | 2 +- release-please-config.json | 2 +- 7 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index d26585d..e3c20ed 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -17,7 +17,7 @@ on: - opened jobs: - + # re-usable workflow @see https://docs.github.com/en/actions/using-workflows/reusing-workflows auto-labeling: uses: carbynestack/.github/.github/workflows/auto-labeler.yml@master diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3294f24..1c27151 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,4 +18,4 @@ jobs: with: command: manifest signoff: "cs-minion " - token: ${{ secrets.CS_MINION_PAT }} \ No newline at end of file + token: ${{ secrets.CS_MINION_PAT }} diff --git a/.github/workflows/stale-issue-cleanup.yml b/.github/workflows/stale-issue-cleanup.yml index 175da80..909881f 100644 --- a/.github/workflows/stale-issue-cleanup.yml +++ b/.github/workflows/stale-issue-cleanup.yml @@ -16,7 +16,7 @@ on: - cron: '0 1 * * *' jobs: - + # re-usable workflow @see https://docs.github.com/en/actions/using-workflows/reusing-workflows stale-issue-cleanup: uses: carbynestack/.github/.github/workflows/stale-actions.yml@master diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93c948d..46afbc9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,17 @@ # SPDX-License-Identifier: Apache-2.0 # repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-byte-order-marker + - id: check-yaml + - id: end-of-file-fixer + exclude: ^3RD-PARTY-LICENSES/.*$ + - id: trailing-whitespace + exclude: ^3RD-PARTY-LICENSES/.*$ + - id: mixed-line-ending + exclude: ^3RD-PARTY-LICENSES/.*$ - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks rev: v2.0.0 hooks: diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 88d1d60..96d9691 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { ".": "0.1.0" -} \ No newline at end of file +} diff --git a/commitlint.config.js b/commitlint.config.js index 63d933e..5fa883f 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -10,4 +10,4 @@ module.exports = { "scope-empty": [0, "never"], "scope-enum": [2, "always", ["java-http-client"]], }, -}; \ No newline at end of file +}; diff --git a/release-please-config.json b/release-please-config.json index 0ee695c..c9bf31b 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -10,4 +10,4 @@ "skip-snapshot": true } } -} \ No newline at end of file +}