Skip to content

Commit de21066

Browse files
committed
Add GitHub Actions workflow for pre-commit checks
1 parent 865ab34 commit de21066

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: pre-commit
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
pre-commit:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.x'
17+
- uses: pre-commit/action@v3.0.0
18+
with:
19+
entry: pre-commit run --all-files
20+

0 commit comments

Comments
 (0)