mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
Add a hook for checking parseable json.
This commit is contained in:
parent
7ec4853521
commit
243fe50bc1
7 changed files with 57 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ from pre_commit_hooks.util import entry
|
|||
@entry
|
||||
def check_yaml(argv):
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('filenames', nargs='*', help='Filenames to check.')
|
||||
parser.add_argument('filenames', nargs='*', help='Yaml filenames to check.')
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
retval = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue