mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
13 lines
328 B
Python
13 lines
328 B
Python
from __future__ import absolute_import
|
|
from __future__ import unicode_literals
|
|
|
|
import io
|
|
|
|
import yaml
|
|
|
|
|
|
def test_readme_contains_all_hooks():
|
|
readme_contents = io.open('README.md').read()
|
|
hooks = yaml.load(io.open('hooks.yaml').read())
|
|
for hook in hooks:
|
|
assert '`{}`'.format(hook['id']) in readme_contents
|