mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
Add .pre-commit-hooks.yaml for forward compatibility
See pre-commit/pre-commit#470
This commit is contained in:
parent
6f21fdf27f
commit
7752c42452
2 changed files with 156 additions and 0 deletions
7
tests/meta_test.py
Normal file
7
tests/meta_test.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue