-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-hooks.yaml
43 lines (41 loc) · 1.32 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
- id: clear-workspace-variables
name: Clear the variables in the Workspace Config files
entry: clear-workspace-variables
language: python
# use require_serial so that script is only called once per commit
require_serial: true
files: '.*WorkspaceVariables.config$'
verbose: true
- id: enforce-workspace-settings
name: Ensure that the workspace settings match what we expect and weren't accidentally changed
entry: enforce-workspace-settings
language: python
# use require_serial so that script is only called once per commit
require_serial: true
files: '.*WorkspaceSettings.config$'
verbose: true
- id: robolint-warnings
name: robolint-warnings
alias: robolint-warnings
entry: robolint
language: python
stages: [commit]
# use require_serial so that script is only called once per commit
require_serial: true
files: '.*/Methods/.*\.met$'
verbose: true
args:
- --rcfile=robolintrc
- --exit-zero # robolint-warnings just reports problems
- id: robolint
name: robolint
alias: robolint
entry: robolint
language: python
stages: [commit]
# use require_serial so that script is only called once per commit
require_serial: true
files: '.*/Methods/.*\.met$'
verbose: true
args:
- --rcfile=robolintrc