Skip to content

Commit

Permalink
GitHub Action to spellcheck and lint Python code
Browse files Browse the repository at this point in the history
The CI automation part that was removed from
* PortAudio#899
* PortAudio#898
  • Loading branch information
cclauss authored May 11, 2024
1 parent f992f1d commit da2ebbf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/codespell_and_ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This Action uses minimal steps to run in ~5 seconds to rapidly:
# look for typos in the codebase using codespell, and
# lint Python code using ruff and provide intuitive GitHub Annotations to contributors.
# https://github.com/codespell-project/codespell#readme
# https://docs.astral.sh/ruff/
name: codespell_and_ruff
on:
push:
branches: [master]
pull_request:
jobs:
codespell_and_ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user codespell[toml] ruff
- run: codespell **/*.py **/*.txt
- run: ruff check --output-format=github --target-version=py38 .

0 comments on commit da2ebbf

Please sign in to comment.