mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 16:44:42 +04:00
Implement no-dependency system and script hook types. Closes #39.
This commit is contained in:
parent
02660f7c0a
commit
c418f2b94e
14 changed files with 86 additions and 52 deletions
|
|
@ -1,15 +1,11 @@
|
|||
|
||||
import pytest
|
||||
|
||||
import pre_commit.constants as C
|
||||
from pre_commit.languages.all import all_languages
|
||||
from pre_commit.languages.all import languages
|
||||
|
||||
|
||||
def test_all_languages_have_repo_setups():
|
||||
assert set(languages.keys()) == C.SUPPORTED_LANGUAGES
|
||||
|
||||
|
||||
@pytest.mark.parametrize('language', C.SUPPORTED_LANGUAGES)
|
||||
@pytest.mark.parametrize('language', all_languages)
|
||||
def test_all_languages_support_interface(language):
|
||||
assert hasattr(languages[language], 'install_environment')
|
||||
assert hasattr(languages[language], 'run_hook')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue