Skip to content

Commit f02fc8a

Browse files
committed
feat: support lint ci
1 parent 2d81aed commit f02fc8a

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.12"
19+
20+
- name: Install pre-commit
21+
run: python -m pip install pre-commit
22+
23+
- name: Run pre-commit checks
24+
run: SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)