-
Notifications
You must be signed in to change notification settings - Fork 217
45 lines (40 loc) · 1.59 KB
/
codespell.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Codespell
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
# Start the job on all pushes
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Set the Job
jobs:
build:
name: Codespell
# Set the agent to run on
runs-on: ubuntu-latest
# Load all steps
steps:
# Check out the code base
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# Run linter against code base
# https://github.com/codespell-project/codespell
- name: Codespell
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630
with:
check_filenames: true
ignore_words_file: .codespellignore
skip: "*.csv,*.dkvp,*.txt,*.js,*.html,*.map,*.z,./tags,./test/cases,./docs/src/shapes-of-data.md.in,./docs/src/shapes-of-data.md,test/input/latin1.xtab"
# As of August 2023 or so, Codespell started exiting with status 1 just _examining_ the
# latin1.xtab file which is (intentionally) not UTF-8. Before, it said
#
# Warning: WARNING: Cannot decode file using encoding "utf-8": ./test/input/latin1.xtab
# WARNING: Trying next encoding "iso-8859-1"
#
# but would exit 0. After, it started exiting with a 1. This is annoying as it makes
# every PR red in CI. So we have to use warning mode now.
only_warn: 1