-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
52 lines (50 loc) · 1.14 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
files: src
repos:
- repo: local
hooks:
- id: custom-script-sh
name: custom-script-sh
entry: pre-commit.sh
language: script
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: no-commit-to-branch
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args:
- "--config=.flake8"
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: ["-rn", "-sn", "--rcfile=.pylintrc", "--fail-on=I"]
exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/
- id: isort
name: isort
entry: isort
require_serial: true
language: python
types_or: [cython, pyi, python]
args: ['--filter-files']
# minimum_pre_commit_version: '2.9.2'
- repo: https://github.com/avilaton/add-msg-issue-prefix-hook
rev: v0.0.5
hooks:
- id: add-msg-issue-prefix
args:
- ".git/COMMIT_EDITMSG"