mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Support hooks with custom node version.
This commit is contained in:
parent
4b98b39cea
commit
511de4fe32
8 changed files with 61 additions and 31 deletions
|
|
@ -82,6 +82,11 @@ def node_hooks_repo(dummy_git_repo):
|
|||
yield _make_repo(dummy_git_repo, 'node_hooks_repo')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def node_0_11_8_hooks_repo(dummy_git_repo):
|
||||
yield _make_repo(dummy_git_repo, 'node_0_11_8_hooks_repo')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def ruby_hooks_repo(dummy_git_repo):
|
||||
yield _make_repo(dummy_git_repo, 'ruby_hooks_repo')
|
||||
|
|
@ -128,6 +133,11 @@ def config_for_node_hooks_repo(node_hooks_repo):
|
|||
yield _make_config(node_hooks_repo, 'foo', '\\.js$')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def config_for_node_0_11_8_hooks_repo(node_0_11_8_hooks_repo):
|
||||
yield _make_config(node_0_11_8_hooks_repo, 'node-11-8-hook', '\\.js$')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def config_for_ruby_hooks_repo(ruby_hooks_repo):
|
||||
yield _make_config(ruby_hooks_repo, 'ruby_hook', '\\.rb$')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue