Skip to content

Commit c8076fa

Browse files
authored
misc: Create GitHub Action to lint Python code (#1065)
1 parent 102842a commit c8076fa

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/lint-python.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://beta.ruff.rs
2+
name: ruff
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
ruff:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- run: pip install --user ruff
16+
- run: ruff --format=github --ignore="E722,F40,F841" --line-length=681 --target-version=py37 .

0 commit comments

Comments
 (0)