Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down Expand Up @@ -40,3 +41,20 @@ repos:
hooks:
- id: yamllint
args: [--config-file, .yamllint.yml]

- repo: local
hooks:
- id: tsc
name: tsc --noEmit
language: system
entry: npx tsc --noEmit
pass_filenames: false
always_run: true
stages: [pre-push]
- id: vitest
name: vitest
language: system
entry: npx vitest run --coverage --passWithNoTests
pass_filenames: false
always_run: true
stages: [pre-push]
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Contributing

## Development

Run `pre-commit install` once per clone to install the commit and push hooks.

- Commit hooks run lint and format checks, matching CI.
- Push hooks run the type check and tests, matching CI (run `npm ci` first).
- Run everything with `pre-commit run --all-files --hook-stage pre-push`.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Accepts raw `docker-compose.yml` content, `docker compose config` output, and [`

## Development

Run `pre-commit install` once per clone to install the commit and push hooks. Commit hooks run lint and format checks, matching CI. Push hooks run the type check and tests (run `npm ci` first), matching CI. Run everything with `pre-commit run --all-files --hook-stage pre-push`.

```bash
npm install
npm run dev # Vite dev server
Expand Down
Loading