-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
56 lines (50 loc) · 1.38 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
args:
- --unsafe
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
#- id: no-commit-to-branch
- id: check-merge-conflict
args: ["--assume-in-merge"]
- repo: local
hooks:
# Prevent committing .rej files
- id: forbidden-files
name: Prevent committing .rej files
language: fail
files: "\\.rej$"
entry: found Copier undate rejection files; review and remove them
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: v0.6.1
hooks:
- id: conventional-gitmoji
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.30.0
hooks:
- id: commitizen
additional_dependencies: [cz-conventional-gitmoji]
- repo: https://github.com/prajeeshag/readme_from_mkdocs
rev: v0.0.3
hooks:
- id: readme-from-mkdocs
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg
- pre-merge-commit