Files
marktvogt.de/.pre-commit-config.yaml
vikingowl 7d07d47ec5 chore: convert to GitLab monorepo
- Merge backend, web, app, planning histories (118 commits preserved)
- Replace Woodpecker CI with .gitlab-ci.yml (path-based triggering)
- Switch mistral-go-sdk from somegit.dev to github.com/VikingOwl91/mistral-go-sdk v1.3.0
- Consolidate .pre-commit-config.yaml and .gitignore at repo root
- Remove per-service .woodpecker.yml files
2026-04-07 02:53:03 +02:00

66 lines
1.7 KiB
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: ^(backend|web)/deploy/helm/templates/
- id: check-json
exclude: ^web/tsconfig\.json$
- id: check-merge-conflict
- id: check-added-large-files
- id: no-commit-to-branch
args: ['--branch', 'main']
- repo: https://github.com/golangci/golangci-lint
rev: v2.1.6
hooks:
- id: golangci-lint
files: ^backend/
args: ['--config', 'backend/.golangci.yml']
- repo: local
hooks:
- id: go-fmt
name: go fmt
entry: bash -c 'cd backend && gofmt -w .'
language: system
files: ^backend/.*\.go$
pass_filenames: false
- id: go-vet
name: go vet
entry: bash -c 'cd backend && go vet ./...'
language: system
files: ^backend/.*\.go$
pass_filenames: false
- id: go-mod-tidy
name: go mod tidy
entry: bash -c 'cd backend && go mod tidy'
language: system
files: ^backend/go\.(mod|sum)$
pass_filenames: false
- id: prettier
name: prettier
entry: bash -c 'cd web && pnpm run format:check'
language: system
files: ^web/
pass_filenames: false
- id: eslint
name: eslint
entry: bash -c 'cd web && pnpm run lint'
language: system
files: ^web/
pass_filenames: false
- id: svelte-check
name: svelte-check
entry: bash -c 'cd web && pnpm run check'
language: system
files: ^web/
pass_filenames: false