Skip to content

Commit 68c2a23

Browse files
authored
Create format.yml
- this will check if you really ran your pre-commit ;) if it fails, locally run and `git add .` then git push! Signed-off-by: Mackenzie Mathis <[email protected]>
1 parent 7f1db78 commit 68c2a23

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/format.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: pre-commit-format
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
pre_commit_checks:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
ref: ${{ github.head_ref }}
17+
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.10'
21+
22+
- run: pip install -r requirements.txt
23+
- run: pip install pre-commit
24+
- run: pre-commit run --all-files

0 commit comments

Comments
 (0)