We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d03214 commit 2e20401Copy full SHA for 2e20401
1 file changed
.github/workflows/pre-commit.yml
@@ -0,0 +1,25 @@
1
+name: Pre-commit Checks
2
+
3
+on:
4
+ push:
5
+ branches: [ main, master, develop ] # 根据您的分支名调整
6
+ pull_request:
7
+ branches: [ main, master, develop ]
8
9
+jobs:
10
+ pre-commit:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v4
18
+ with:
19
+ python-version: '3.x' # 指定您的Python版本
20
21
+ - name: Install pre-commit
22
+ run: pip install pre-commit
23
24
+ - name: Run pre-commit on all files
25
+ run: pre-commit run --all-files
0 commit comments