Skip to content

Commit

Permalink
ci: Run precommit Hook on pull_request (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolipakakondal authored Sep 5, 2023
1 parent fb53f00 commit 9d6c775
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Precommit Hook

on:
pull_request:
branches: [ master ]

jobs:
precommit:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

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

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

0 comments on commit 9d6c775

Please sign in to comment.