-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
61 lines (53 loc) · 1.56 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
52
53
54
55
56
57
58
59
60
61
default_stages: [commit]
repos:
- repo: https://github.com/ambv/black
rev: 24.3.0
hooks:
- id: black
language_version: python3
exclude: snap_
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
# use a "local" repo and not the pyright hook to ensure pyright runs in the same virtualenv
# as the rest of the code
- repo: local
hooks:
- id: pyright
name: pyright
entry: 'pdm run pyright'
language: system
types: [python]
# do not pass filenames, otherwise Pyright might scan files we don't want it to scan
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-json
- id: check-added-large-files
- id: check-yaml
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/Woile/commitizen
rev: v2.27.1
hooks:
- id: commitizen
# don't forget to run pre-commit install --hook-type commit-msg for this hook to run
stages: [commit-msg]
- repo: https://github.com/pre-commit/mirrors-prettier # to format JSON, YAML and markdown files among others
rev: v2.7.1
hooks:
- id: prettier
- repo: https://github.com/gitguardian/ggshield
rev: v1.33.0
hooks:
- id: ggshield
language_version: python3
stages: [commit]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.19.0
hooks:
- id: check-github-workflows