mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-30 10:16:54 +00:00
15 lines
411 B
Python
15 lines
411 B
Python
from __future__ import absolute_import
|
|
from __future__ import unicode_literals
|
|
|
|
import io
|
|
|
|
import yaml
|
|
|
|
|
|
def test_readme_contains_all_hooks():
|
|
with io.open('README.md', encoding='UTF-8') as f:
|
|
readme_contents = f.read()
|
|
with io.open('.pre-commit-hooks.yaml', encoding='UTF-8') as f:
|
|
hooks = yaml.load(f)
|
|
for hook in hooks:
|
|
assert '`{}`'.format(hook['id']) in readme_contents
|