-
Notifications
You must be signed in to change notification settings - Fork 83
/
.pre-commit-config.yaml
41 lines (37 loc) · 1003 Bytes
/
.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
# Install the hooks in this file:
# pre-commit install --hook-type pre-commit --hook-type commit-msg
#
# (optional) test hooks for staged files:
# pre-commit run --verbose
#
# (optional) test hooks for all files:
# pre-commit run --all-files --verbose
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-case-conflict
- id: check-ast
- id: debug-statements
- id: check-docstring-first
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-symlinks
- id: destroyed-symlinks
- id: check-executables-have-shebangs
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.28.0
hooks:
- id: commitizen
stages: [commit-msg]