Merge branch 'master' into peternewman-config-option
Testing / Test run action (push) Successful in 3s
Testing / Run tests (codespell, false) (push) Failing after 9s
Testing / Diagnose bats (git+https://github.com/codespell-project/codespell.git) (push) Waiting to run
Testing / Run tests (git+https://github.com/codespell-project/codespell.git, false) (push) Failing after 8s
Testing / Diagnose bats (codespell) (push) Waiting to run
Testing / Check for spelling errors (push) Successful in 5s

This commit is contained in:
Peter Newman
2021-07-24 11:47:28 +01:00
committed by GitHub
3 changed files with 57 additions and 6 deletions
+17 -4
View File
@@ -59,20 +59,33 @@ jobs:
check_filenames: true
check_hidden: true
# When using this Action in other repos, the --skip option below can be removed
skip: ./.git,./codespell-problem-matcher/test,./test
skip: ./.git,./codespell-problem-matcher/test,./test,./README.md,./.github/workflows/testing.yml
# Check our README (and this workflow) ignoring the two intentional typos
- uses: ./
with:
check_filenames: true
check_hidden: true
path: ./README.md,./.github/workflows/testing.yml
ignore_words_list: abandonned,ackward
diagnose_bats:
name: Diagnose bats
needs: test
if: always() && needs.test.result == 'failure'
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
codespell_pip_version: ['codespell']
include:
- codespell_pip_version: 'git+https://github.com/codespell-project/codespell.git'
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v2
- run: pip3 --quiet --quiet install git+https://github.com/codespell-project/codespell.git
- run: pip3 --quiet --quiet install ${{ matrix.codespell_pip_version }}
- run: |
# Skip the bats diagnostics
exit 0
# Simulate the Dockerfile COPY command
[ -d "${RUNNER_TEMP}/code/" ] || sudo mkdir -p ${RUNNER_TEMP}/code/
[ -f "${RUNNER_TEMP}/code/codespell-matcher.json" ] || sudo cp codespell-problem-matcher/codespell-matcher.json ${RUNNER_TEMP}/code/
+38
View File
@@ -57,6 +57,44 @@ with:
skip: foo,bar
```
### Parameter: builtin
Comma-separated list of builtin dictionaries to use.
This parameter is optional; by default `codespell` will use it's default selection of built in dictionaries.
```
uses: codespell-project/actions-codespell@master
with:
builtin: clear,rare
```
### Parameter: ignore_words_file
File that contains words which will be ignored by `codespell`. File must contain one word per line.
Words are case sensitive based on how they are written in the dictionary file.
This parameter is optional; by default `codespell` will check all words for typos.
```
uses: codespell-project/actions-codespell@master
with:
ignore_words_file: .codespellignore
```
### Parameter: ignore_words_list
Comma-separated list of words which will be ignored by `codespell`.
Words are case sensitive based on how they are written in the dictionary file.
This parameter is optional; by default `codespell` will check all words for typos.
```
uses: codespell-project/actions-codespell@master
with:
ignore_words_list: abandonned,ackward
```
### Parameter: path
Indicates the path to run `codespell` in.
+2 -2
View File
@@ -23,11 +23,11 @@ inputs:
required: false
default: ''
ignore_words_file:
description: 'File with a list of words to be ignored'
description: 'File with a list of words to be ignored. Words are case sensitive based on how they are written in the dictionary file'
required: false
default: ''
ignore_words_list:
description: 'Comma-separated list of words to be ignored'
description: 'Comma-separated list of words to be ignored. Words are case sensitive based on how they are written in the dictionary file'
required: false
default: ''
path: