Skip to content

Commit a77fa0d

Browse files
committed
Add ci checks ruff and trailing whitespace
1 parent fada7e3 commit a77fa0d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ["*"]
7+
pull_request:
8+
9+
jobs:
10+
ruff:
11+
name: Ruff Check
12+
runs-on: ubuntu-latest
13+
container:
14+
image: python:3.11.9-alpine
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install Ruff 0.11.11
19+
run: pip install ruff==0.11.11
20+
21+
- name: Run Ruff
22+
run: ruff check .
23+
24+
trailing-whitespace:
25+
name: Find Trailing Whitespace
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: harupy/find-trailing-whitespace@master

0 commit comments

Comments
 (0)