-
Notifications
You must be signed in to change notification settings - Fork 77
/
.pre-commit-hooks.yaml
98 lines (85 loc) · 2.41 KB
/
.pre-commit-hooks.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
- id: run-unit-tests
name: Run unit tests
description: Run content test using docker
entry: demisto-sdk run-unit-tests
language: python
files: &files
.*Packs/.*/(?:Integrations|Scripts)/.*.yml$
- id: validate
name: validate
description: validate content
entry: demisto-sdk validate
args: ["-g"]
pass_filenames: false
language: python
require_serial: true
- id: format
name: format
description: Format non-code files, to comply with XSOAR standards.
entry: demisto-sdk format
args: ["-ud", "-n", "--no-validate", "-g"]
language: python
pass_filenames: false
require_serial: true
- id: secrets
name: secrets
description: Check for secrets in files.
entry: demisto-sdk secrets
args: ["--ignore-entropy"]
pass_filenames: false
language: python
- id: no-implicit-optional
name: no implicit optional
description: Making code implicit-optional type hints PEP 484 compliant.
entry: no_implicit_optional
require_serial: true
language: python
types: [python]
- id: mypy
name: mypy
entry: mypy
language: python
require_serial: true
types: [python]
exclude: tests/.*|demisto_sdk/commands/init/templates/.*
- id: coverage-analyze
name: coverage-analyze
entry: demisto-sdk coverage-analyze
description: Running demisto-sdk coverage-analyze and showing a coverage report.
language: python
pass_filenames: false
args: ["-i", ".coverage"]
- id: merge-pytest-reports
name: merge-pytest-reports
entry: merge-pytest-reports
language: python
require_serial: true
pass_filenames: false
- id: validate-deleted-files
name: validate-deleted-files
entry: validate-deleted-files
language: python
require_serial: true
pass_filenames: false
- id: validate-content-path
name: validate-content-path
entry: validate-content-path
language: python
pass_filenames: true
- id: validate-xsoar-config
name: validate-xsoar-config
entry: validate-xsoar-config
language: python
pass_filenames: true
- id: validate-file-permission-changes
name: validate-file-permission-changes
description: Validate that file permissions haven't been changed.
entry: validate-file-permission-changes
language: python
files: ^Packs/
- id: prevent-mypy-global-ignore
name: prevent-mypy-global-ignore
description: Prevent Python files from setting global mypy ignore
entry: prevent-mypy-global-ignore
language: python
files: .*Packs/.*/(?:Integrations|Scripts)/.*.py$