-
Notifications
You must be signed in to change notification settings - Fork 72
/
.pre-commit-config.yaml
54 lines (49 loc) · 1.23 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
---
minimum_pre_commit_version: 2.9.2
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
files: \.py$
args:
- --line-length=125
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
files: \.py$
args:
- --config=.flake8
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
files: \.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
name: Mypy Karapace
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
exclude: ^vendor/|^tests/.*/fixtures/.*|^tests/integration/test_data/.*
- id: end-of-file-fixer
exclude: ^vendor/|^tests/.*/fixtures/.*|^tests/integration/test_data/.*
- id: debug-statements
# https://pre-commit.com/#repository-local-hooks
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
files: \.py$
exclude: ^vendor/
args:
- --rcfile=.pylintrc