Sign in
cobalt
/
pre-commit-hooks
/
777d06b3368e1b17481e2cd4b3a78cb2eda57dc4
/
.
/
tests
/
meta_test.py
blob: 773bb0d9b6aeb75163f803b8c96dbea0619c755d [
file
] [
log
] [
blame
]
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'
]])