Create pre-commit.yml

This commit is contained in:
Wang Xinyu 2024-03-19 19:31:52 +08:00 committed by GitHub
parent f768d67fbc
commit 3fe9df9fa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

14
.github/workflows/pre-commit.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: pre-commit
on:
pull_request:
push:
branches: [master]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1