mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Support ruby through a combination of rbenv, ruby-build, and GEM_HOME
This commit is contained in:
parent
390af24c44
commit
b381bb68b7
10 changed files with 124 additions and 24 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import jsonschema
|
||||
import os
|
||||
import os.path
|
||||
import pytest
|
||||
import shutil
|
||||
from plumbum import local
|
||||
|
||||
|
|
@ -41,3 +42,10 @@ def is_valid_according_to_schema(obj, schema):
|
|||
return True
|
||||
except jsonschema.exceptions.ValidationError:
|
||||
return False
|
||||
|
||||
|
||||
def skipif_slowtests_false(func):
|
||||
return pytest.mark.skipif(
|
||||
os.environ.get('slowtests') == 'false',
|
||||
reason='slowtests=false',
|
||||
)(func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue