Implement pygrep language as a replacement for pcre

This commit is contained in:
Anthony Sottile 2017-09-22 17:06:48 -07:00
parent 3a7806ea30
commit e9509306d8
8 changed files with 186 additions and 112 deletions

View file

@ -70,7 +70,7 @@ def test_local_hooks(tempdir_factory, mock_out_store_directory):
('id', 'do_not_commit'),
('name', 'Block if "DO NOT COMMIT" is found'),
('entry', 'DO NOT COMMIT'),
('language', 'pcre'),
('language', 'pygrep'),
('files', '^(.*)$'),
)),
),
@ -105,7 +105,7 @@ def test_local_hooks_alt_config(tempdir_factory, mock_out_store_directory):
('id', 'do_not_commit'),
('name', 'Block if "DO NOT COMMIT" is found'),
('entry', 'DO NOT COMMIT'),
('language', 'pcre'),
('language', 'pygrep'),
('files', '^(.*)$'),
)),
),