# Path: pre_commit/meta_hooks/check_hooks_apply.py
# def check_all_hooks_match_files(config_file: str) -> int:
# def main(argv: Sequence[str] | None = None) -> int:
# 
# Path: testing/fixtures.py
# def add_config_to_repo(git_path, config, config_file=C.CONFIG_FILE):
#     write_config(git_path, config, config_file=config_file)
#     cmd_output('git', 'add', config_file, cwd=git_path)
#     git_commit(msg=add_config_to_repo.__name__, cwd=git_path)
#     return git_path


from pre_commit.meta_hooks import check_hooks_apply
from testing.fixtures import add_config_to_repo
from __future__ import annotations



def test_hook_excludes_everything(capsys, in_git_dir, mock_store_dir):
    config = {
        'repos': [
            {
                'repo': 'meta',
                'hooks': [
                    {
                        'id': 'check-useless-excludes',
                        'exclude': '.pre-commit-config.yaml',
                    },
                ],
            },
        ],
    }


# Path: pre_commit/meta_hooks/check_hooks_apply.py
# def check_all_hooks_match_files(config_file: str) -> int:
# def main(argv: Sequence[str] | None = None) -> int:
# 
# Path: testing/fixtures.py
# def add_config_to_repo(git_path, config, config_file=C.CONFIG_FILE):
#     write_config(git_path, config, config_file=config_file)
#     cmd_output('git', 'add', config_file, cwd=git_path)
#     git_commit(msg=add_config_to_repo.__name__, cwd=git_path)
#     return git_path


# Path: tests/meta_hooks/check_hooks_apply_test.py
from pre_commit.meta_hooks import check_hooks_apply
from testing.fixtures import add_config_to_repo

from __future__ import annotations



def test_hook_excludes_everything(capsys, in_git_dir, mock_store_dir):
    config = {
        'repos': [
            {
                'repo': 'meta',
                'hooks': [
                    {
                        'id': 'check-useless-excludes',
                        'exclude': '.pre-commit-config.yaml',
                    },
                ],
            },
        ],
    }


    add_config_to_repo(in_git_dir.strpath, config)