Adding upstream version 2.19.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
75996f15a7
commit
5216111727
53 changed files with 392 additions and 131 deletions
16
pre_commit/commands/validate_manifest.py
Normal file
16
pre_commit/commands/validate_manifest.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from pre_commit import clientlib
|
||||
|
||||
|
||||
def validate_manifest(filenames: list[str]) -> int:
|
||||
ret = 0
|
||||
|
||||
for filename in filenames:
|
||||
try:
|
||||
clientlib.load_manifest(filename)
|
||||
except clientlib.InvalidManifestError as e:
|
||||
print(e)
|
||||
ret = 1
|
||||
|
||||
return ret
|
Loading…
Add table
Add a link
Reference in a new issue