Your IP : 3.144.40.90


Current Path : /proc/self/root/opt/hc_python/lib/python3.8/site-packages/pre_commit/commands/
Upload File :
Current File : //proc/self/root/opt/hc_python/lib/python3.8/site-packages/pre_commit/commands/validate_manifest.py

from __future__ import annotations

from typing import Sequence

from pre_commit import clientlib


def validate_manifest(filenames: Sequence[str]) -> int:
    ret = 0

    for filename in filenames:
        try:
            clientlib.load_manifest(filename)
        except clientlib.InvalidManifestError as e:
            print(e)
            ret = 1

    return ret

?>