Add CI
This commit is contained in:
parent
bfcf26e425
commit
8cd69fd312
3 changed files with 128 additions and 2 deletions
46
Taskfile.yml
46
Taskfile.yml
|
|
@ -51,7 +51,51 @@ tasks:
|
|||
- uv run fastapi run server/main.py --port 8001
|
||||
|
||||
lint:
|
||||
desc: Lint and format Python code
|
||||
desc: Lint all code (Python and TypeScript)
|
||||
cmds:
|
||||
- task: lint:python
|
||||
- task: lint:frontend
|
||||
|
||||
lint:python:
|
||||
desc: Lint Python code with ruff
|
||||
cmds:
|
||||
- uv run ruff check .
|
||||
|
||||
lint:frontend:
|
||||
desc: Lint frontend TypeScript code
|
||||
dir: frontend
|
||||
cmds:
|
||||
- npm run lint
|
||||
- npm run format:check
|
||||
|
||||
format:
|
||||
desc: Format all code (Python and TypeScript)
|
||||
cmds:
|
||||
- task: format:python
|
||||
- task: format:frontend
|
||||
|
||||
format:python:
|
||||
desc: Format Python code with ruff
|
||||
cmds:
|
||||
- uv run ruff check --fix .
|
||||
- uv run ruff format .
|
||||
|
||||
format:frontend:
|
||||
desc: Format frontend TypeScript code
|
||||
dir: frontend
|
||||
cmds:
|
||||
- npm run lint:fix
|
||||
- npm run format
|
||||
|
||||
check:
|
||||
desc: Run all checks (lint, typecheck, build)
|
||||
cmds:
|
||||
- task: lint
|
||||
- task: typecheck
|
||||
- task: build
|
||||
|
||||
typecheck:
|
||||
desc: Type check frontend TypeScript code
|
||||
dir: frontend
|
||||
cmds:
|
||||
- npm run typecheck
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue