mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +04:00
Add pass_filenames hook option
This option controls whether filenames are passed along as arguments to the hook program.
This commit is contained in:
parent
6025475afb
commit
e774c09fac
4 changed files with 33 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ def test_manifest_contents(manifest):
|
|||
'log_file': '',
|
||||
'minimum_pre_commit_version': '0',
|
||||
'name': 'Bash hook',
|
||||
'pass_filenames': True,
|
||||
'stages': [],
|
||||
}]
|
||||
|
||||
|
|
@ -51,6 +52,7 @@ def test_hooks(manifest):
|
|||
'log_file': '',
|
||||
'minimum_pre_commit_version': '0',
|
||||
'name': 'Bash hook',
|
||||
'pass_filenames': True,
|
||||
'stages': [],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue