Skip to content

Commit eae3898

Browse files
ci: add ruff lint workflow and Makefile target
1 parent e5506c6 commit eae3898

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
ruff:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 5
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Install ruff
16+
run: pipx install ruff
17+
18+
- name: Ruff check
19+
run: ruff check .
20+
21+
- name: Ruff format
22+
run: ruff format --check .

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
.PHONY: test test-all test-unit test-run test-memory-bounds e2e cluster
1+
.PHONY: test test-all test-unit test-run test-memory-bounds e2e cluster lint
2+
3+
# Lint: ruff check + format check
4+
lint:
5+
uv run ruff check .
6+
uv run ruff format --check .
27

38
# Default: run unit tests only (no containers needed)
49
test: test-unit

0 commit comments

Comments
 (0)