-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
51 lines (51 loc) · 1.86 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- 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, torch, praat-parselmouth, orjson, pydantic, scipy, psycopg, deepgram-sdk, pydub, ffmpeg-python, jiwer, beartype, openai, mytextgrid, bert-score, jaroWinkler, "--extra-index-url", "https://download.pytorch.org/whl/cpu"]
stages: [pre-commit]
- repo: https://github.com/crate-ci/typos
rev: v1.21.0
hooks:
- id: typos
stages: [pre-commit]
- repo: local
# the local repository is ignored when running precommit in the ci
# but the only way to do this is to ignore the hooks by ids
# so if you change the ids of local hooks, make sure to change them
# in the .github/workflows and (maybe?) .gitlab/ stuff
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")' _