Current Path: > > opt > hc_python > lib64 > python3.12 > > site-packages > pre_commit
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
commands | Directory | - | - | |
languages | Directory | - | - | |
meta_hooks | Directory | - | - | |
resources | Directory | - | - | |
__init__.py | File | 0 bytes | April 04 2025 08:02:35. | |
__main__.py | File | 127 bytes | April 04 2025 08:02:35. | |
all_languages.py | File | 1412 bytes | April 04 2025 08:02:35. | |
clientlib.py | File | 15282 bytes | April 04 2025 08:02:35. | |
color.py | File | 3219 bytes | April 04 2025 08:02:35. | |
constants.py | File | 282 bytes | April 04 2025 08:02:35. | |
envcontext.py | File | 1593 bytes | April 04 2025 08:02:35. | |
error_handler.py | File | 2621 bytes | April 04 2025 08:02:35. | |
errors.py | File | 78 bytes | April 04 2025 08:02:35. | |
file_lock.py | File | 2342 bytes | April 04 2025 08:02:35. | |
git.py | File | 8524 bytes | April 04 2025 08:02:35. | |
hook.py | File | 1513 bytes | April 04 2025 08:02:35. | |
lang_base.py | File | 5238 bytes | April 04 2025 08:02:35. | |
logging_handler.py | File | 1019 bytes | April 04 2025 08:02:35. | |
main.py | File | 15564 bytes | April 04 2025 08:02:35. | |
output.py | File | 911 bytes | April 04 2025 08:02:35. | |
parse_shebang.py | File | 2481 bytes | April 04 2025 08:02:35. | |
prefix.py | File | 495 bytes | April 04 2025 08:02:35. | |
repository.py | File | 7608 bytes | April 04 2025 08:02:35. | |
staged_files_only.py | File | 4155 bytes | April 04 2025 08:02:35. | |
store.py | File | 9392 bytes | April 04 2025 08:02:35. | |
util.py | File | 7038 bytes | April 04 2025 08:02:35. | |
xargs.py | File | 5541 bytes | April 04 2025 08:02:35. | |
yaml.py | File | 561 bytes | April 04 2025 08:02:35. | |
yaml_rewrite.py | File | 1337 bytes | April 04 2025 08:02:35. |
from __future__ import annotations import logging from collections.abc import Sequence from typing import Any from typing import NamedTuple from pre_commit.prefix import Prefix logger = logging.getLogger('pre_commit') class Hook(NamedTuple): src: str prefix: Prefix id: str name: str entry: str language: str alias: str files: str exclude: str types: Sequence[str] types_or: Sequence[str] exclude_types: Sequence[str] additional_dependencies: Sequence[str] args: Sequence[str] always_run: bool fail_fast: bool pass_filenames: bool description: str language_version: str log_file: str minimum_pre_commit_version: str require_serial: bool stages: Sequence[str] verbose: bool @property def install_key(self) -> tuple[Prefix, str, str, tuple[str, ...]]: return ( self.prefix, self.language, self.language_version, tuple(self.additional_dependencies), ) @classmethod def create(cls, src: str, prefix: Prefix, dct: dict[str, Any]) -> Hook: # TODO: have cfgv do this (?) extra_keys = set(dct) - _KEYS if extra_keys: logger.warning( f'Unexpected key(s) present on {src} => {dct["id"]}: ' f'{", ".join(sorted(extra_keys))}', ) return cls(src=src, prefix=prefix, **{k: dct[k] for k in _KEYS}) _KEYS = frozenset(set(Hook._fields) - {'src', 'prefix'})
SILENT KILLER Tool