2021-02-08 10:20:51 -05:00
|
|
|
name: Lint
|
|
|
|
|
2022-01-20 02:48:26 -05:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2021-02-08 10:20:51 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
pre-commit:
|
2022-01-31 21:49:58 -05:00
|
|
|
name: Run pre-commit
|
2021-02-08 10:20:51 -05:00
|
|
|
runs-on: ubuntu-latest
|
2022-01-31 21:49:58 -05:00
|
|
|
|
2021-02-08 10:20:51 -05:00
|
|
|
steps:
|
2022-01-31 21:49:58 -05:00
|
|
|
- name: Check out repo
|
2022-03-10 20:24:29 -05:00
|
|
|
uses: actions/checkout@v3
|
2022-01-31 21:49:58 -05:00
|
|
|
|
|
|
|
- name: Set up Python 3
|
2022-07-31 06:34:28 -04:00
|
|
|
uses: actions/setup-python@v4
|
2022-01-31 21:49:58 -05:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Run pre-commit hooks
|
2022-07-31 06:34:28 -04:00
|
|
|
uses: pre-commit/action@v3.0.0
|
2023-03-30 12:52:29 -04:00
|
|
|
|
|
|
|
- name: Check spelling
|
|
|
|
uses: pre-commit/action@v3.0.0
|
|
|
|
with:
|
|
|
|
extra_args: --all-files --hook-stage manual codespell || true
|