48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
rev: v3.2.0
|
|
hooks:
|
|
- id: conventional-pre-commit
|
|
stages: [commit-msg]
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.4.4
|
|
hooks:
|
|
- id: ruff
|
|
types_or: [python, pyi, jupyter]
|
|
args: [--fix]
|
|
stages: [pre-commit]
|
|
- id: ruff-format
|
|
types_or: [python, pyi, jupyter]
|
|
stages: [pre-commit]
|
|
- repo: https://github.com/RobertCraigie/pyright-python
|
|
rev: v1.1.351
|
|
hooks:
|
|
- id: pyright
|
|
types_or: [python, pyi, jupyter]
|
|
additional_dependencies: [numpy, pytest, fastapi, praat-parselmouth, orjson, pydantic, scipy, psycopg, deepgram-sdk, pydub, ffmpeg-python, jiwer, beartype, openai]
|
|
stages: [pre-commit]
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.21.0
|
|
hooks:
|
|
- id: typos
|
|
stages: [pre-commit]
|
|
- repo: local
|
|
hooks:
|
|
- id: prettier
|
|
name: pnpm prettier
|
|
language: system
|
|
stages: [pre-commit]
|
|
types_or: [ts, javascript, svelte]
|
|
entry: bash -c 'cd app; pnpm prettier --write $(echo "$@" | sed "s|app/||g")' _
|
|
- id: eslint
|
|
name: pnpm eslint
|
|
language: system
|
|
stages: [pre-commit]
|
|
types_or: [ts, javascript, svelte]
|
|
entry: bash -c 'cd app; pnpm eslint --fix $(echo "$@" | sed "s|app/||g")' _
|