xtablo-source/.pre-commit-config.yaml

29 lines
743 B
YAML
Raw Normal View History

2025-04-10 05:43:57 +00:00
repos:
- repo: local
hooks:
- id: no-commit-to-main
name: Don't commit to main branch
entry: sh -c 'if [ "$(git rev-parse --abbrev-ref HEAD)" = "main" ]; then echo "Direct commits to main branch are not allowed!"; exit 1; fi'
language: system
pass_filenames: false
always_run: true
2025-10-10 08:23:30 +00:00
- id: typecheck
name: Typecheck Frontend
entry: just typecheck
language: python
pass_filenames: false
2025-10-10 09:06:44 +00:00
files: ^ui/.*\.(ts|tsx)$
2025-04-10 05:43:57 +00:00
- id: test-ui
name: Test Frontend
entry: just test-frontend
language: python
pass_filenames: false
2025-07-19 16:57:05 +00:00
files: ^ui/.*\.(ts|tsx|js|jsx)$
2025-10-10 08:23:30 +00:00
- id: test-api
name: Test API
entry: just test-api
2025-04-10 05:43:57 +00:00
language: python
pass_filenames: false
2025-10-10 08:23:30 +00:00
files: ^api/.*\.(ts)$