Skip to content

Commit

Permalink
Add .fmf/version to pre-commit rules
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Jul 4, 2024
1 parent f4771e4 commit 64972f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- id: tmt-lint
name: tmt lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(logger=tmt.Logger.create(), path=\".\").root)')/.fmf/version && tmt lint --failed-only --source $@" PAD
files: '.*\.fmf$'
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
Expand All @@ -10,7 +10,7 @@
- id: tmt-tests-lint
name: tmt tests lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(logger=tmt.Logger.create(), path=\".\").root)')/.fmf/version && tmt tests lint --failed-only --source $@" PAD
files: '.*\.fmf$'
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
Expand All @@ -19,7 +19,7 @@
- id: tmt-plans-lint
name: tmt plans lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(logger=tmt.Logger.create(), path=\".\").root)')/.fmf/version && tmt plans lint --failed-only --source $@" PAD
files: '.*\.fmf$'
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
Expand All @@ -28,7 +28,7 @@
- id: tmt-stories-lint
name: tmt stories lint
entry: bash -c "git ls-files --error-unmatch $(python3 -c 'import tmt; print(tmt.Tree(logger=tmt.Logger.create(), path=\".\").root)')/.fmf/version && tmt stories lint --failed-only --source $@" PAD
files: '.*\.fmf$'
files: '(?:.*\.fmf|.*/\.fmf/version)$'
verbose: false
pass_filenames: true
language: python
Expand Down

0 comments on commit 64972f2

Please sign in to comment.