Skip to content

Commit 766de08

Browse files
committed
ci(pre-commit): add pre-commit action
1 parent 1760ef3 commit 766de08

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pre-commit.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master, main]
7+
8+
jobs:
9+
pre-commit-check:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Setup Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.10.7
18+
- name: Install pre-commit
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install pre-commit
22+
- name: Run pre-commit on all files
23+
run: |
24+
pre-commit run --all-files

0 commit comments

Comments
 (0)