Skip to content

fix: replace lambda assignment with def to pass ruff E731 #37

fix: replace lambda assignment with def to pass ruff E731

fix: replace lambda assignment with def to pass ruff E731 #37

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
# ── Backend checks ──────────────────────────────────────────────────────
backend:
name: Backend Lint & Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.13
- name: Install dependencies
run: uv sync --dev
- name: Ruff lint
run: uv run ruff check src/ backend/
# ── Frontend checks ─────────────────────────────────────────────────────
frontend:
name: Frontend Lint & Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: TypeScript type check
run: npx tsc --noEmit
- name: ESLint
run: npm run lint || echo "::warning::ESLint has pre-existing issues — not blocking CI yet"
- name: Build
run: npm run build