Make language check more strict.

This commit is contained in:
Anthony Sottile 2014-06-02 06:47:59 -07:00
parent fdd6989ece
commit 914a74f80b
2 changed files with 17 additions and 6 deletions

View file

@ -31,9 +31,9 @@ def additional_manifest_check(obj):
for hook_config in obj:
language = hook_config['language']
if not any(language.startswith(lang) for lang in all_languages):
if language not in all_languages:
raise InvalidManifestError(
'Expected language {0} for {1} to start with one of {2!r}'.format(
'Expected language {0} for {1} to be one of {2!r}'.format(
hook_config['id'],
hook_config['language'],
all_languages,