Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
CI: explicity execute pre-commit in CI on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mawildoer committed Sep 9, 2024
1 parent 6cf4dc7 commit de148c3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: pre-commit

on:
pull_request:
branches:
- '**'

jobs:
run-pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install pre-commit
run: pip install pre-commit

- name: Run pre-commit
run: pre-commit run --all-files

- name: Fail on diff after pre-commit is run
run: git diff --exit-code

0 comments on commit de148c3

Please sign in to comment.