Add .pre-commit-hooks.yaml for forward compatibility

See pre-commit/pre-commit#470
This commit is contained in:
Anthony Sottile 2017-01-21 18:03:59 -08:00
parent 6f21fdf27f
commit 7752c42452
2 changed files with 156 additions and 0 deletions

7
tests/meta_test.py Normal file
View file

@ -0,0 +1,7 @@
import io
def test_hooks_yaml_same_contents():
legacy_contents = io.open('hooks.yaml').read()
contents = io.open('.pre-commit-hooks.yaml').read()
assert legacy_contents == contents