mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-30 10:16:54 +00:00
12 lines
282 B
Python
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']])
|