-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
44 lines (39 loc) · 1023 Bytes
/
.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
default_stages: [commit]
repos:
- repo: https://github.com/Woile/commitizen
rev: v4.2.2
hooks:
- id: commitizen
stages: [commit-msg]
- repo: local
hooks:
- id: eslint
name: eslint
verbose: true
language: node
entry: yarn --cwd frontend run eslint
pass_filenames: false
files: .*\.tsx?$
- repo: local
hooks:
- id: tsc
name: tsc
verbose: true
language: node
entry: yarn --cwd frontend/ run tsc --project tsconfig.json
files: \.tsx?$
pass_filenames: false
stages: [commit, push]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.9
hooks:
- id: ruff
args: [--fix, --config=backend/pyproject.toml]
- id: ruff-format
args: [--config=backend/pyproject.toml]
- repo: https://github.com/gitguardian/ggshield
rev: v1.36.0
hooks:
- id: ggshield
language_version: python3
stages: [commit, push]