-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
49 lines (47 loc) · 1.24 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
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-shebang-scripts-are-executable
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint
name: check markdown
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
name: check yaml
- 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"]