mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Use Hook api in languages
This commit is contained in:
parent
5f9a667470
commit
b59d7197ff
18 changed files with 41 additions and 38 deletions
|
|
@ -39,7 +39,7 @@ def test_ENVIRONMENT_DIR(language):
|
|||
|
||||
@pytest.mark.parametrize('language', all_languages)
|
||||
def test_run_hook_argpsec(language):
|
||||
expected_argspec = ArgSpec(args=['prefix', 'hook', 'file_args'])
|
||||
expected_argspec = ArgSpec(args=['hook', 'file_args'])
|
||||
argspec = getargspec(languages[language].run_hook)
|
||||
assert argspec == expected_argspec
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue