Skip to content

Commit b3289fe

Browse files
committed
add lint and format check action
1 parent 8022ec7 commit b3289fe

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint and format checks
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
17+
- name: Install tools
18+
run: |
19+
pip install black isort ruff
20+
21+
- name: Run Black
22+
run: black --check .
23+
24+
- name: Run Isort
25+
run: isort --check-only .
26+
27+
- name: Run Ruff
28+
run: ruff .

0 commit comments

Comments
 (0)