Skip to content

Commit

Permalink
Enforce pre-commit hooks on pull requests (#1636)
Browse files Browse the repository at this point in the history
* Add pre-commit github action

* dirty commit

* Do not continue-on-error for pre-commit action

* Revert "dirty commit"

This reverts commit 973359f.
  • Loading branch information
gzpcho authored May 31, 2024
1 parent 825926e commit 264c0ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit

on:
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}

0 comments on commit 264c0ce

Please sign in to comment.