pre-commit-hooks/tests/meta_test.py
2014-04-03 22:22:00 -07:00

12 lines
282 B
Python

import subprocess
from pre_commit.clientlib.validate_manifest import load_manifest
def test_all_hooks_allow_no_files():
manifest = load_manifest('hooks.yaml')
for hook in manifest:
if hook['id'] != 'pyflakes':
subprocess.check_call([hook['entry']])