Skip to content

Commit 451db0a

Browse files
committed
Add GitHub Actions workflow for linting with Ruff
1 parent b8398a3 commit 451db0a

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint Python Code
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.13"
20+
cache: "pip"
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install ruff
25+
26+
- name: Run Ruff
27+
run: ruff check --output-format=github

0 commit comments

Comments
 (0)