2023-08-05 08:24:46 -04:00
|
|
|
name: Lint PEPs
|
2021-02-08 10:20:51 -05:00
|
|
|
|
2023-08-05 08:24:46 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
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:
|
2023-09-05 00:08:14 -04:00
|
|
|
- uses: actions/checkout@v4
|
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:
|
2023-08-05 08:24:46 -04:00
|
|
|
python-version: "3.x"
|
|
|
|
cache: pip
|
2022-01-31 21:49:58 -05:00
|
|
|
|
|
|
|
- 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
|
2023-09-04 23:44:46 -04:00
|
|
|
|
|
|
|
check-peps:
|
|
|
|
name: Run check-peps
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python 3
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: "3"
|
|
|
|
|
|
|
|
- name: Run check-peps
|
|
|
|
run: python check-peps.py --detailed
|