mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Remove expected_return_value. Resolves #232
This commit is contained in:
parent
3472f2b3ce
commit
67ad0d2d8e
5 changed files with 2 additions and 7 deletions
|
|
@ -24,7 +24,6 @@ MANIFEST_JSON_SCHEMA = {
|
|||
'language': {'type': 'string'},
|
||||
'language_version': {'type': 'string', 'default': 'default'},
|
||||
'files': {'type': 'string'},
|
||||
'expected_return_value': {'type': 'number', 'default': 0},
|
||||
'stages': {
|
||||
'type': 'array',
|
||||
'default': [],
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ def _run_single_hook(hook, repo, args, write, skips=frozenset()):
|
|||
|
||||
retcode, stdout, stderr = repo.run_hook(hook, filenames)
|
||||
|
||||
if retcode != hook['expected_return_value']:
|
||||
if retcode:
|
||||
retcode = 1
|
||||
print_color = color.RED
|
||||
pass_fail = 'Failed'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue