Skip to content

Commit 1a11ca3

Browse files
committed
add pre-commit
1 parent 40081bc commit 1a11ca3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/pre-commit.yml

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

0 commit comments

Comments
 (0)