-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.61 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
args: ["--unsafe"]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
name: interrogate
exclude: ^(core_backend/migrations|core_backend/tests|core_backend/validation|optional_components/speech_api/tests)
entry: interrogate
args: [-v, --fail-under=95, --ignore-module]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1 # Use the sha / tag you want to point at
hooks:
- id: mypy
exclude: ^data/|^scripts/
additional_dependencies: [types-PyYAML==6.0.12.12, types-python-dateutil, redis]
args: [--ignore-missing-imports, --explicit-package-base]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3" # Use the sha / tag you want to point at
hooks:
- id: prettier
exclude: ^(docs)
args: ["--print-width", "88"]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.92.0
hooks:
- id: terraform_fmt
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
exclude: package.lock.json