mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml
This commit is contained in:
parent
b90a598fac
commit
b9e5184ebd
32 changed files with 107 additions and 21 deletions
9
tests/meta_test.py
Normal file
9
tests/meta_test.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import io
|
||||
|
||||
import pre_commit.constants as C
|
||||
|
||||
|
||||
def test_hooks_yaml_same_contents():
|
||||
legacy_contents = io.open(C.MANIFEST_FILE_LEGACY).read()
|
||||
contents = io.open(C.MANIFEST_FILE).read()
|
||||
assert legacy_contents == contents
|
||||
Loading…
Add table
Add a link
Reference in a new issue