-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.pre-commit-config.yaml
43 lines (38 loc) · 1.14 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
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: detect-private-key
- id: end-of-file-fixer
exclude: ^LICENSE|\.(html|csv|txt|svg)$
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: \.(html|svg)$
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.2.1
hooks:
- id: commitizen
additional_dependencies: [cz-conventional-gitmoji]
- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: v0.6.1
hooks:
- id: conventional-gitmoji
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.5
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror
rev: 1.27.0
hooks:
- id: basedpyright