mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Add manifest file.
This commit is contained in:
parent
28857c9a74
commit
af7e23aae5
2 changed files with 10 additions and 2 deletions
8
manifest.yaml
Normal file
8
manifest.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
hooks:
|
||||||
|
-
|
||||||
|
id: validate_manifest
|
||||||
|
name: Validate Manifest
|
||||||
|
description: This validator validates a pre-commit hooks manifest file
|
||||||
|
entry: validate-manifest
|
||||||
|
language: python
|
||||||
|
|
@ -61,8 +61,8 @@ validate_manifest = get_validator(
|
||||||
def run(argv):
|
def run(argv):
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--filename',
|
'filename',
|
||||||
required=False, default=None,
|
nargs='?', default=None,
|
||||||
help='Manifest filename. Defaults to {0} at root of git repo'.format(
|
help='Manifest filename. Defaults to {0} at root of git repo'.format(
|
||||||
C.MANIFEST_FILE,
|
C.MANIFEST_FILE,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue