From 3e4e0d0be6ec5b0511721b7041b44523a9afe282 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 21 Mar 2023 08:31:12 +0700 Subject: [PATCH] minor update codespell --- .codespell/exclude-file.txt | 1 - .codespell/ignore-words.txt | 1 + .github/workflows/githubci.yml | 4 ++-- .pre-commit-config.yaml | 12 +++++------- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.codespell/exclude-file.txt b/.codespell/exclude-file.txt index 28bb9a4..e69de29 100644 --- a/.codespell/exclude-file.txt +++ b/.codespell/exclude-file.txt @@ -1 +0,0 @@ - * - https://github.com/torvalds/linux/blob/master/drivers/i2c/busses/i2c-tiny-usb.c diff --git a/.codespell/ignore-words.txt b/.codespell/ignore-words.txt index 106e3e3..2aae0e7 100644 --- a/.codespell/ignore-words.txt +++ b/.codespell/ignore-words.txt @@ -1,3 +1,4 @@ synopsys sie inout +busses diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml index 03d4f20..295cf7b 100644 --- a/.github/workflows/githubci.yml +++ b/.github/workflows/githubci.yml @@ -18,8 +18,8 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Run codespell - uses: codespell-project/actions-codespell@master + - name: Run pre-commit + uses: pre-commit/action@v3.0.0 - name: Checkout adafruit/ci-arduino uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8faec49..4aa6f85 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,10 +3,8 @@ # SPDX-License-Identifier: Unlicense repos: -- repo: local - hooks: - - id: codespell - name: codespell - entry: codespell - types_or: [c, ino, c++, header] - language: system +- repo: https://github.com/codespell-project/codespell + rev: v2.2.4 + hooks: + - id: codespell + #args: [-w]