-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
executable file
·61 lines (61 loc) · 1.77 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
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [commit, manual]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args:
- '--maxkb=10000'
- id: end-of-file-fixer
exclude: '\.ipynb$'
- id: check-toml
- id: check-xml
- id: check-case-conflict
- id: detect-aws-credentials
args:
- '--allow-missing-credentials'
- id: check-symlinks
- id: check-merge-conflict
stages:
- commit
- merge-commit
- manual
- id: requirements-txt-fixer
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
additional_dependencies: ['@commitlint/[email protected]']
pass_filenames: true
stages:
- commit-msg
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
stages:
- commit
- manual
- repo: local
hooks:
- id: black
name: black
entry: black
args: [--config=./pyproject.toml]
language: system
types: [python]
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
stages:
- commit
- manual
exclude: \{\{cookiecutter.repo_name\}\}/