Skip to content

Commit e1bebbc

Browse files
committed
Add GitHub Action for pre-commit checks on PRs
1 parent 7c2c964 commit e1bebbc

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Pre-commit checks
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.11'
17+
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)