Skip to content

Commit 34d6384

Browse files
committed
Add pre-commit gha workflow
1 parent 7d4f483 commit 34d6384

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
jobs:
8+
pre-commit:
9+
name: Run pre-commit
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
- run: python -m pip install pre-commit
15+
shell: bash
16+
- run: pre-commit run --show-diff-on-failure --color=always
17+
shell: bash

0 commit comments

Comments
 (0)