Skip to content

Commit 66a227b

Browse files
committed
Add workflow to lint python
1 parent e6c9395 commit 66a227b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/validate.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Validate
2+
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
7+
branches: main
8+
workflow_dispatch:
9+
10+
jobs:
11+
validate:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Format and lint
16+
run: |
17+
pip install ruff==0.7.0
18+
ruff format --check *.py
19+
ruff check *.py

0 commit comments

Comments
 (0)