-
Notifications
You must be signed in to change notification settings - Fork 125
/
.pre-commit-hooks.yaml
37 lines (34 loc) · 1.17 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
- id: tmt-lint
name: tmt lint
# Use a simple wrapper instead of simply `tmt lint` in order to reorder
# some arguments that need to be passed to `tmt`
entry: python -m tmt._pre_commit --pre-check lint --failed-only --source
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
language_version: python3
- id: tmt-tests-lint
name: tmt tests lint
entry: python -m tmt._pre_commit --pre-check tests lint --failed-only --source
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
language_version: python3
- id: tmt-plans-lint
name: tmt plans lint
entry: python -m tmt._pre_commit --pre-check plans lint --failed-only --source
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
language_version: python3
- id: tmt-stories-lint
name: tmt stories lint
entry: python -m tmt._pre_commit --pre-check stories lint --failed-only --source
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
language_version: python3