diff --git a/.codespellrc b/.codespellrc index 8fab288..474a7a5 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,5 +1,4 @@ [codespell] -# Ref: https://github.com/codespell-project/codespell#using-a-config-file -skip = tests,artifacts*,pylintrc +# skip = tests,artifacts*,pylintrc builtin = usage ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 2555f6d..6a2c660 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -13,9 +13,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install codespell - run: pip install codespell - - name: Get variable with regex values id: regexvar run: | @@ -25,7 +22,20 @@ jobs: echo "$regexvar" echo "regexvar=$regexvar" >> "$GITHUB_OUTPUT" + # - name: Install codespell + # run: pip install codespell + + # - name: Get all changed files + # id: files + # uses: jitterbit/get-changed-files@v1 + # with: + # format: 'space-delimited' + - name: Show errors from codespell as annotation in GitHub Actions uses: codespell-project/codespell-problem-matcher@v1 - - name: Run codespell - run: codespell --regex "${{ steps.regexvar.outputs.regexvar }}" -C0 + # - name: Run codespell + # run: codespell --regex "${{ steps.regexvar.outputs.regexvar }}" -C0 + - name: Codespell + uses: https://github.com/spetrosi/actions-codespell/tree/add-regex-input + with: + regex: ${{ steps.regexvar.outputs.regexvar }}