-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
66 lines (64 loc) · 1.73 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
62
63
64
65
66
---
default_stages: [commit]
ci:
skip: [commitlint]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-executables-have-shebangs
- id: check-added-large-files
- id: debug-statements
name: check for debug statements
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
name: check for hardcoded secrets
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint
name: check markdown
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
name: check yaml
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-no-eval
- id: python-use-type-annotations
name: check that python type annotations not comments
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
name: check python style and quality
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
name: format python
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: sort python imports
- repo: https://github.com/PyCQA/bandit
rev: 1.7.8
hooks:
- id: bandit
name: security audit for python
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
name: check commit message
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']