Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit 87f1080

Browse files
committed
Add pre-commit to github actions
1 parent d4bfa16 commit 87f1080

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
lint-with-pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.10'
16+
17+
- name: Install pre-commit
18+
run: pip install pre-commit
19+
20+
- name: Run pre-commit hooks
21+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)