-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Action to spellcheck and lint Python code
- Loading branch information
Showing
5 changed files
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters