Skip to content

Commit

Permalink
Create codespell_and_ruff.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Feb 11, 2024
1 parent 8f507cc commit e5e3b17
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/codespell_and_ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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: [main, master]
pull_request:
branches: [main, master]
jobs:
codespell_and_ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user codespell[toml] ruff
- run: codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock,*.po"
- run: ruff --output-format=github --select=E9,F63,F7 --target-version=py38 .
- run: ruff --output-format=github --select=E9,F63,F7,F82 --target-version=py38 .
- run: ruff --output-format=github --line-length=200 --target-version=py38 .
- run: ruff --output-format=github --target-version=py38 .
- run: ruff --output-format=github

0 comments on commit e5e3b17

Please sign in to comment.