# Path: pre_commit_hooks/check_yaml.py
# def _exhaust(gen: Generator[str, None, None]) -> None:
# def _parse_unsafe(*args: Any, **kwargs: Any) -> None:
# def _load_all(*args: Any, **kwargs: Any) -> None:
# def main(argv: Sequence[str] | None = None) -> int:
# class Key(NamedTuple):
# LOAD_FNS = {
#     Key(multi=False, unsafe=False): yaml.load,
#     Key(multi=False, unsafe=True): _parse_unsafe,
#     Key(multi=True, unsafe=False): _load_all,
#     Key(multi=True, unsafe=True): _parse_unsafe,
# }


from pre_commit_hooks.check_yaml import yaml
from __future__ import annotations



def test_readme_contains_all_hooks():
    with open('README.md', encoding='UTF-8') as f:
        readme_contents = f.read()
    with open('.pre-commit-hooks.yaml', encoding='UTF-8') as f:

# Path: pre_commit_hooks/check_yaml.py
# def _exhaust(gen: Generator[str, None, None]) -> None:
# def _parse_unsafe(*args: Any, **kwargs: Any) -> None:
# def _load_all(*args: Any, **kwargs: Any) -> None:
# def main(argv: Sequence[str] | None = None) -> int:
# class Key(NamedTuple):
# LOAD_FNS = {
#     Key(multi=False, unsafe=False): yaml.load,
#     Key(multi=False, unsafe=True): _parse_unsafe,
#     Key(multi=True, unsafe=False): _load_all,
#     Key(multi=True, unsafe=True): _parse_unsafe,
# }


# Path: tests/readme_test.py
from pre_commit_hooks.check_yaml import yaml

from __future__ import annotations



def test_readme_contains_all_hooks():
    with open('README.md', encoding='UTF-8') as f:
        readme_contents = f.read()
    with open('.pre-commit-hooks.yaml', encoding='UTF-8') as f:

        hooks = yaml.load(f)