2023-08-05 08:24:46 -04:00
|
|
|
name: Lint PEPs
|
2021-02-08 10:20:51 -05:00
|
|
|
|
2024-02-08 11:43:54 -05:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2023-08-05 08:24:46 -04:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
2023-09-10 11:04:40 -04:00
|
|
|
RUFF_FORMAT: github
|
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
|
2024-02-08 11:43:54 -05:00
|
|
|
uses: actions/setup-python@v5
|
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
|
2024-02-08 11:43:54 -05:00
|
|
|
uses: pre-commit/action@v3.0.1
|
2023-03-30 12:52:29 -04:00
|
|
|
|
|
|
|
- name: Check spelling
|
2024-02-08 11:43:54 -05:00
|
|
|
uses: pre-commit/action@v3.0.1
|
2023-03-30 12:52:29 -04:00
|
|
|
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:
|
2024-02-08 11:43:54 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-04 23:44:46 -04:00
|
|
|
- name: Set up Python 3
|
2024-02-08 11:43:54 -05:00
|
|
|
uses: actions/setup-python@v5
|
2023-09-04 23:44:46 -04:00
|
|
|
with:
|
|
|
|
python-version: "3"
|
|
|
|
|
|
|
|
- name: Run check-peps
|
|
|
|
run: python check-peps.py --detailed
|