-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
73 lines (72 loc) · 2.46 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
# To install pre-commit hooks, install `pre-commit` and activate it here:
# pip3 install pre-commit
# pre-commit install
#
---
fail_fast: true
default_stages:
- commit
- push
- manual
repos:
- repo: local
hooks:
- id: check-shellscripts
name: Check Shell Scripts
entry: dev/check-shellscripts
language: script
types: [file, shell]
- id: check-python-format
name: Check Python Formatting
entry: dev/check-python-format
language: script
types: [file, python]
# - id: check-python-typing
# name: Check Python Type Hinting
# entry: dev/check-python-typing
# language: script
# types: [file, python]
- id: check-python-typing
name: Check Python Type Hinting
language: system
entry: poetry
args: ["run", "mypy", "--config-file", "pyproject.toml"]
types: [file, python]
exclude: (?x)^(
\.venv|
cmk_dev/procmon\.py)$
- id: check-yaml-linting
name: Check YAML Linting
entry: dev/check-yaml-linting
language: script
types: [file, yaml]
- id: check-python-doctest
name: Doctests
entry: dev/check-python-doctests
language: script
types: [file, python]
exclude: (?x)^(
cmk-dev_dev)$
verbose: true
# - id: absolute-imports
# name: Check absolute imports
# entry: scripts/check-absolute-imports.py
# language: script
# types: [file, python]
# - id: flake8
# name: Check flake8
# entry: scripts/check-flake8
# language: script
# types: [file, python]
# verbose: true
# - id: unittest
# name: unittests
# entry: scripts/run-unittests
# language: script
# types: [file, python]
# verbose: true
# - id: remove-stale-imports
# name: Remove stale imports
# language: script
# entry: scripts/run-autoflake
# types: [file, python]