Skip to content

Commit

Permalink
Skip tmt checks if not tests file (#1284)
Browse files Browse the repository at this point in the history
* Skip tmt checks if not tests file

Skipping the hook to run on all files/folders, only execute it in tests folder

* Update .pre-commit-config.yaml

Co-authored-by: Martin "kokesak" Litwora <[email protected]>

---------

Co-authored-by: Martin "kokesak" Litwora <[email protected]>
  • Loading branch information
r0x0d and kokesak authored Jul 2, 2024
1 parent e7c30bd commit 5c42c1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ repos:
hooks:
- id: "tmt-tests-lint"
verbose: false
files: ^(tests/|plans/)

- repo: https://github.com/packit/pre-commit-hooks
rev: v1.2.0
Expand Down

0 comments on commit 5c42c1f

Please sign in to comment.