Hacked By AnonymousFox

Current Path : /opt/hc_python/lib64/python3.8/site-packages/pre_commit/commands/
Upload File :
Current File : //opt/hc_python/lib64/python3.8/site-packages/pre_commit/commands/validate_config.py

from __future__ import annotations

from typing import Sequence

from pre_commit import clientlib


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

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

    return ret

Hacked By AnonymousFox1.0, Coded By AnonymousFox