Skip to content

Commit

Permalink
check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Nov 5, 2024
1 parent 6b683f9 commit f52276a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ jobs:
- name: Run tests
run: python3 -m pytest

precommit_hooks:
runs-on: ubuntu-latest
strategy:
matrix:
hook:
- name: "Check EOF format"
args: "end-of-file-fixer --all-files"
- name: "Check trailing whitespace"
args: "trailing-whitespace --all-files"
- name: "Check line ending format"
args: "mixed-line-ending --fix=lf --all-files"
steps:
- uses: actions/checkout@v3

- name: ${{ matrix.hook.name }}
uses: pre-commit/action@v3.0.1
with:
extra_args: ${{ matrix.hook.args }}
lint:
name: lint
runs-on: ubuntu-latest
Expand Down

0 comments on commit f52276a

Please sign in to comment.