mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
test
This commit is contained in:
parent
fa92aa223f
commit
b135ab67ac
3 changed files with 5 additions and 5 deletions
|
|
@ -40,5 +40,4 @@ repos:
|
|||
hooks:
|
||||
- id: check-hooks-apply
|
||||
- id: check-useless-excludes
|
||||
- id: identity
|
||||
- id: sign-commit
|
||||
|
|
|
|||
|
|
@ -168,9 +168,9 @@ _meta = (
|
|||
),
|
||||
(
|
||||
'sign-commit', (
|
||||
('name', 'identity'),
|
||||
('name', 'Signs commit after all hooks pass'),
|
||||
('verbose', True),
|
||||
('entry', _entry('identity')),
|
||||
('entry', _entry('sign_commit')),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,10 @@ def main(argv=None):
|
|||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('retval', nargs='*', default=0)
|
||||
args = parser.parse_args(argv)
|
||||
output.write_line(f'Signing commit message if {args.retval}')
|
||||
sign_commit()
|
||||
output.write_line(f'Signing commit message if {args}')
|
||||
if args.retval:
|
||||
return 1
|
||||
return 0
|
||||
return 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue