Skip to content

Commit 09851a4

Browse files
committed
Add ruff Github action (#1)
1 parent 3115c16 commit 09851a4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/ci.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ["master"]
5+
pull_request:
6+
7+
jobs:
8+
format:
9+
runs-on: ubuntu-24.04
10+
name: "Linting and formatting"
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Run ruff check
16+
uses: astral-sh/ruff-action@v2
17+
18+
- name: Run ruff format --check
19+
uses: astral-sh/ruff-action@v2
20+
with:
21+
args: "format --check"

dev_requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-r requirements.txt
22
uwsgi
33
pycodestyle
4+
ruff

0 commit comments

Comments
 (0)