Skip to content

Commit

Permalink
pre-commit.yml: run pre-commit checks before allowing merge
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 9, 2023
1 parent b5343de commit f2d238c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run Pre-commit Checks

on:
pull_request:
branches:
- master

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
pre_commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: pre-commit/[email protected]

0 comments on commit f2d238c

Please sign in to comment.