From 19a812a3d5891cf37216fa526b08f533487490b2 Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Tue, 30 May 2023 16:53:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20update=20pre-commit=20config=20(?= =?UTF-8?q?#174)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This small PR updates the pre-commit configuration so it actually works and skips the auto-generated files that should not be touched. Signed-off-by: Lukas Burgholzer --- .github/workflows/test.yml | 2 +- .pre-commit-config.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76695d5..d60dbb9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true - + defaults: run: shell: sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ecedd1..0605dac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,11 @@ # pre-commit install # +exclude: > + (?x)^( + dist/.*|package.*\.json + )$ + ci: autoupdate_commit_msg: "⬆️🪝 update pre-commit hooks" autofix_commit_msg: "🎨 pre-commit fixes" @@ -35,10 +40,9 @@ repos: # Check for spelling - repo: https://github.com/codespell-project/codespell - rev: "v2.2.1" + rev: "v2.2.4" hooks: - id: codespell - args: ["-L", "wille,linz,inflight"] # Format configuration files with prettier - repo: https://github.com/pre-commit/mirrors-prettier