Skip to content

Commit

Permalink
ci: Add pre-commit action
Browse files Browse the repository at this point in the history
If user does not have pre-commit installed, the pre-commit action can
catch it and the code.

Signed-off-by: Yihuang Yu <[email protected]>
  • Loading branch information
PaulYuuu committed Aug 26, 2024
1 parent e64bb9c commit a512988
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: pre-commit

on:
pull_request:
push:
branches: [master]

jobs:
pre-commit:
runs-on: ubuntu-latest
env:
SKIP: no-commit-to-branch
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- uses: pre-commit/[email protected]

0 comments on commit a512988

Please sign in to comment.