Skip to content

Commit de14dea

Browse files
chore: run pre-commit on changes to the config file
If the .pre-commit-config.yaml is updated then run pre-commit
1 parent a6d631f commit de14dea

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pre_commit.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: pre_commit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
.pre-commit-config.yaml
9+
pull_request:
10+
branches:
11+
- main
12+
- master
13+
paths:
14+
.pre-commit-config.yaml
15+
16+
env:
17+
PY_COLORS: 1
18+
19+
jobs:
20+
21+
pre_commit:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-python@v2
26+
- run: pip install --upgrade -r requirements.txt -r requirements-lint.txt pre-commit
27+
- name: Run pre-commit install
28+
run: pre-commit install
29+
- name: pre-commit run all-files
30+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)