Skip to content

Commit 5f10b3b

Browse files
chore: run pre-commit on changes to the config file
If .pre-commit-config.yaml or .github/workflows/pre_commit.yml are updated then run pre-commit.
1 parent 041091f commit 5f10b3b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/pre_commit.yml

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

0 commit comments

Comments
 (0)