mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Support language_version for ruby as well.
This commit is contained in:
parent
511de4fe32
commit
02a79bf1c3
8 changed files with 72 additions and 15 deletions
|
|
@ -92,6 +92,11 @@ def ruby_hooks_repo(dummy_git_repo):
|
|||
yield _make_repo(dummy_git_repo, 'ruby_hooks_repo')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def ruby_1_9_3_p547_hooks_repo(dummy_git_repo):
|
||||
yield _make_repo(dummy_git_repo, 'ruby_1_9_3_p547_hooks_repo')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def consumer_repo(dummy_git_repo):
|
||||
yield _make_repo(dummy_git_repo, 'consumer_repo')
|
||||
|
|
@ -143,6 +148,11 @@ def config_for_ruby_hooks_repo(ruby_hooks_repo):
|
|||
yield _make_config(ruby_hooks_repo, 'ruby_hook', '\\.rb$')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def config_for_ruby_1_9_3_p547_hooks_repo(ruby_1_9_3_p547_hooks_repo):
|
||||
yield _make_config(ruby_1_9_3_p547_hooks_repo, 'ruby_hook', '\\.rb$')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def config_for_python_hooks_repo(python_hooks_repo):
|
||||
yield _make_config(python_hooks_repo, 'foo', '\\.py$')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue