-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (46 loc) · 1.19 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
# File introduces automated checks triggered on git events
# to enable run `pip install pre-commit && pre-commit install`
repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff --fix
language: system
types: [python]
stages: [pre-commit]
- id: ruff-format
name: ruff format
entry: ruff format
language: system
types: [python]
stages: [pre-commit]
- id: mypy
name: mypy
entry: mypy --exclude tests --pretty
language: system
types: [python]
stages: [pre-commit]
- repo: https://github.com/dronetag/pre-commit-hooks
rev: v1.0.0
hooks:
- id: check-email-domain
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-merge-conflict
- id: detect-private-key
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.13.0
hooks:
- id: commitlint
stages: [commit-msg]