We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20baf1a + b312063 commit 16ff195Copy full SHA for 16ff195
tests/readme_test.py
@@ -7,7 +7,9 @@
7
8
9
def test_readme_contains_all_hooks():
10
- readme_contents = io.open('README.md').read()
11
- hooks = yaml.load(io.open('hooks.yaml').read())
+ with io.open('README.md', encoding='UTF-8') as f:
+ readme_contents = f.read()
12
+ with io.open('.pre-commit-hooks.yaml', encoding='UTF-8') as f:
13
+ hooks = yaml.load(f)
14
for hook in hooks:
15
assert '`{}`'.format(hook['id']) in readme_contents
0 commit comments