2021-04-11 14:58:04 +00:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-05-03 14:09:25 +00:00
|
|
|
codespell:
|
|
|
|
name: Check spelling all files with codespell
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-03-29 06:33:19 +00:00
|
|
|
python-version: ['3.10']
|
2021-05-03 14:09:25 +00:00
|
|
|
steps:
|
2022-03-31 02:35:04 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-03 14:09:25 +00:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install codespell
|
|
|
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
|
|
- name: Check spelling with codespell
|
|
|
|
run: codespell --ignore-words=codespell.txt || exit 1
|
2021-04-11 14:58:04 +00:00
|
|
|
misspell:
|
2021-05-03 14:09:25 +00:00
|
|
|
name: Check spelling all files in commit with misspell
|
2021-04-11 14:58:04 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-31 02:35:04 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-11 14:58:04 +00:00
|
|
|
- name: Install
|
2022-04-26 13:01:32 +00:00
|
|
|
run: wget -O - -q https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh | sh -s -- -b .
|
2021-04-11 14:58:04 +00:00
|
|
|
- name: Misspell
|
|
|
|
run: git ls-files --empty-directory | xargs ./misspell -i 'aircrafts,devels,invertions' -error
|