mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
deprecate pre-commit-validate-{config,manifest}
This commit is contained in:
parent
e1ce4c0bf3
commit
777ffdd692
7 changed files with 87 additions and 22 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