Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c62c1a3

Browse files
committed
manifest -> hooks
1 parent d4c9f90 commit c62c1a3

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

File renamed without changes.

pre_commit/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
HOOKS_WORKSPACE = '.pre-commit-files'
55

6-
MANIFEST_FILE = 'manifest.yaml'
6+
MANIFEST_FILE = 'hooks.yaml'
77

88
SUPPORTED_LANGUAGES = set([
99
'python',
File renamed without changes.
File renamed without changes.

tests/clientlib/validate_base_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AdditionalValidatorError(ValueError): pass
1717

1818
@pytest.fixture
1919
def noop_validator():
20-
return get_validator('example_manifest.yaml', {}, ValueError)
20+
return get_validator('example_hooks.yaml', {}, ValueError)
2121

2222

2323
@pytest.fixture
@@ -31,7 +31,7 @@ def raises_always(obj):
3131
raise AdditionalValidatorError
3232

3333
return get_validator(
34-
'example_manifest.yaml',
34+
'example_hooks.yaml',
3535
{},
3636
ValueError,
3737
additional_validation_strategy=raises_always,
@@ -52,7 +52,7 @@ def test_defaults_to_backup_filename(noop_validator):
5252
with mock.patch.object(__builtin__, 'open', side_effect=open) as mock_open:
5353
noop_validator()
5454
mock_open.assert_called_once_with(
55-
os.path.join(git.get_root(), 'example_manifest.yaml'), 'r',
55+
os.path.join(git.get_root(), 'example_hooks.yaml'), 'r',
5656
)
5757

5858

tests/clientlib/validate_manifest_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def test_returns_0_for_valid_manifest():
13-
assert run(['example_manifest.yaml']) == 0
13+
assert run(['example_hooks.yaml']) == 0
1414

1515

1616
def test_returns_0_for_our_manifest():

tests/git_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_filenames():
2222
'pre_commit/run.py',
2323
'pre_commit/git.py',
2424
'im_a_file_that_doesnt_exist.py',
25-
'manifest.yaml',
25+
'hooks.yaml',
2626
)
2727

2828
return git.get_files_matching(get_filenames)
@@ -33,7 +33,7 @@ def test_get_files_matching_base(get_files_matching_func):
3333
assert ret == set([
3434
'pre_commit/run.py',
3535
'pre_commit/git.py',
36-
'manifest.yaml',
36+
'hooks.yaml',
3737
])
3838

3939

@@ -47,7 +47,7 @@ def test_get_files_matching_total_match(get_files_matching_func):
4747

4848
def test_does_search_instead_of_match(get_files_matching_func):
4949
ret = get_files_matching_func('\.yaml$')
50-
assert ret == set(['manifest.yaml'])
50+
assert ret == set(['hooks.yaml'])
5151

5252

5353
def test_does_not_include_deleted_fileS(get_files_matching_func):

0 commit comments

Comments
 (0)