42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
|
|
repos:
|
||
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||
|
|
rev: v0.14.0
|
||
|
|
hooks:
|
||
|
|
- id: ruff
|
||
|
|
args: [--fix]
|
||
|
|
files: ^backend/
|
||
|
|
- id: ruff-format
|
||
|
|
files: ^backend/
|
||
|
|
|
||
|
|
- repo: https://github.com/PyCQA/bandit
|
||
|
|
rev: 1.8.0
|
||
|
|
hooks:
|
||
|
|
- id: bandit
|
||
|
|
args: [-c, backend/pyproject.toml, -r]
|
||
|
|
files: ^backend/
|
||
|
|
exclude: ^backend/(tests|\.venv)/
|
||
|
|
|
||
|
|
- repo: local
|
||
|
|
hooks:
|
||
|
|
- id: eslint
|
||
|
|
name: ESLint
|
||
|
|
entry: npm run lint --prefix frontend
|
||
|
|
language: system
|
||
|
|
files: ^frontend/.*\.(ts|tsx)$
|
||
|
|
pass_filenames: false
|
||
|
|
|
||
|
|
- id: prettier
|
||
|
|
name: Prettier
|
||
|
|
entry: npm run format:check --prefix frontend
|
||
|
|
language: system
|
||
|
|
files: ^frontend/
|
||
|
|
pass_filenames: false
|
||
|
|
|
||
|
|
- id: check-constants
|
||
|
|
name: Check shared constants
|
||
|
|
entry: bash -c 'cd backend && uv run python validate_constants.py'
|
||
|
|
language: system
|
||
|
|
files: shared/constants\.json$
|
||
|
|
pass_filenames: false
|
||
|
|
|