Skip to content

Commit 92fd137

Browse files
committed
Add pre-commit for Woodpecker CI.
1 parent 84a8d6f commit 92fd137

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.woodpecker/pre-commit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
when:
2+
- event: push
3+
- event: pull_request
4+
5+
variables:
6+
- &pip_config
7+
PIP_INDEX_URL: https://mirrors.ustc.edu.cn/pypi/simple
8+
9+
steps:
10+
- name: pre-commit
11+
image: python:3.12
12+
environment:
13+
<<: *pip_config
14+
commands:
15+
- pip install pre-commit
16+
- pip install '.[dev]'
17+
- pre-commit run --all-files

0 commit comments

Comments
 (0)