Skip to content

Commit a5eb849

Browse files
tmgbeduclaude
andcommitted
feat: add GitHub Actions workflow for ruff lint and format checks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2e2b304 commit a5eb849

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
ruff:
11+
name: Ruff
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- name: Install dependencies
25+
working-directory: fastapi_startkit
26+
run: uv sync --group dev
27+
28+
- name: Run ruff check
29+
working-directory: fastapi_startkit
30+
run: uv run ruff check .
31+
32+
- name: Run ruff format check
33+
working-directory: fastapi_startkit
34+
run: uv run ruff format --check .

0 commit comments

Comments
 (0)