forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
75 lines (75 loc) · 2.18 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# This is the configuration file for the pre-commit framework.
# To use this you need to install it seperately and activate it for your repository.
# To do so issue the following commands:
#
# pip3 install pre-commit
#
# and in your repository
#
# pre-commit install
#
# That's it. You're done.
#
default_stages:
- commit
- push
- manual
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
types: [file]
- id: check-docstring-first
- id: check-yaml
- id: end-of-file-fixer
# - repo: https://github.com/pre-commit/mirrors-scss-lint
# rev: v0.59.0
# hooks:
# - id: scss-lint
# files: \.scss$
- repo: local
hooks:
- id: yapf
name: Check yapf
entry: scripts/check-yapf -i
language: script
types: [file, python]
- id: omd-python-modules
name: Check Python modules in OMD
entry: scripts/check-omd-python-modules
language: script
files: omd/packages/python3?-modules
types: [file]
- id: pylint
name: Check pylint
entry: scripts/check-pylint
language: script
types: [file, python]
- id: futurize
name: Check futurize
entry: scripts/check-futurize
language: script
types: [file, python]
- id: mypy
name: Check types with mypy
entry: scripts/check-mypy
language: script
types: [file, python]
- id: shebang
name: Check shebang lines
entry: scripts/check-shebang
language: script
types: [file, python]
- id: licence
name: Check licence headers
entry: scripts/check-licence
language: script
types: [file, python]
- id: absolute-imports
name: Check absolute imports
entry: scripts/check-absolute-imports
language: script
types: [file, python]