Skip to content

Commit

Permalink
feat: add backend linter
Browse files Browse the repository at this point in the history
  • Loading branch information
seelengxd committed Sep 19, 2024
1 parent c733385 commit 99b74d8
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: CI
on: push
jobs:
eslint:
frontend:
name: frontend (eslint)
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -15,3 +16,22 @@ jobs:
run: npm install
- name: ESLint
run: npm run lint
backend:
name: format, lint and type-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
version: "0.4.10"
- name: Set up Python
run: uv python install
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Check code formatting
run: uvx ruff format --check
- name: Lint
run: uvx ruff check

0 comments on commit 99b74d8

Please sign in to comment.