-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
68 lines (60 loc) · 1.63 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
67
68
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# - id: check-yaml
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: debug-statements
stages: [pre-push]
# ## Isort
# - repo: https://github.com/pycqa/isort
# rev: 5.12.0
# hooks:
# - id: isort
# name: isort
# stages: [pre-commit]
# ## Black
# - repo: https://github.com/psf/black
# rev: 23.3.0
# hooks:
# - id: black
# stages: [pre-commit]
# ## Ruff
# - repo: https://github.com/charliermarsh/ruff-pre-commit
# rev: v0.0.260
# hooks:
# - id: ruff
# stages: [pre-commit]
# ## PEP257: Python docstring conventions
# - repo: https://github.com/PyCQA/pydocstyle
# rev: 6.3.0
# hooks:
# - id: pydocstyle
# stages: [pre-push]
# ## Detect passwords, api-tokens, secrets within a code base
# - repo: https://github.com/Yelp/detect-secrets
# rev: v1.4.0
# hooks:
# - id: detect-secrets
# stages: [pre-push]
# # args: ['--baseline', '.secrets.baseline']
# ## Conventional commit message(basic)
# - repo: https://github.com/compilerla/conventional-pre-commit
# rev: v2.1.1
# hooks:
# - id: conventional-pre-commit
# stages: [commit-msg]
# args: [] # list of Conventional Commits types to allow. default: ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test"]
# ## Conventional commit message(commitizen)
# - repo: https://github.com/commitizen-tools/commitizen
# rev: v2.42.1
# hooks:
# - id: commitizen
# stages: [commit-msg]