forked from teemtee/tmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
35 lines (32 loc) · 1.23 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
- id: tmt-lint
name: tmt lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(\".\").root)')/.fmf/version && tmt lint --source $@" PAD
files: '.*\.fmf$'
verbose: true
pass_filenames: true
language: python
language_version: python3
- id: tmt-tests-lint
name: tmt tests lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(\".\").root)')/.fmf/version && tmt tests lint --source $@" PAD
files: '.*\.fmf$'
verbose: true
pass_filenames: true
language: python
language_version: python3
- id: tmt-plans-lint
name: tmt plans lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(\".\").root)')/.fmf/version && tmt plans lint --source $@" PAD
files: '.*\.fmf$'
verbose: true
pass_filenames: true
language: python
language_version: python3
- id: tmt-stories-lint
name: tmt stories lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(\".\").root)')/.fmf/version && tmt stories lint --source $@" PAD
files: '.*\.fmf$'
verbose: true
pass_filenames: true
language: python
language_version: python3