mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
use implementation-agnostic conda package for test
This commit is contained in:
parent
202f0bbbc9
commit
32a286d530
1 changed files with 4 additions and 4 deletions
|
|
@ -94,8 +94,8 @@ def test_conda_with_additional_dependencies_hook(tempdir_factory, store):
|
||||||
config_kwargs={
|
config_kwargs={
|
||||||
'hooks': [{
|
'hooks': [{
|
||||||
'id': 'additional-deps',
|
'id': 'additional-deps',
|
||||||
'args': ['-c', 'import mccabe; print("OK")'],
|
'args': ['-c', 'import tzdata; print("OK")'],
|
||||||
'additional_dependencies': ['mccabe'],
|
'additional_dependencies': ['python-tzdata'],
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
@ -109,8 +109,8 @@ def test_local_conda_additional_dependencies(store):
|
||||||
'name': 'local-conda',
|
'name': 'local-conda',
|
||||||
'entry': 'python',
|
'entry': 'python',
|
||||||
'language': 'conda',
|
'language': 'conda',
|
||||||
'args': ['-c', 'import mccabe; print("OK")'],
|
'args': ['-c', 'import tzdata; print("OK")'],
|
||||||
'additional_dependencies': ['mccabe'],
|
'additional_dependencies': ['python-tzdata'],
|
||||||
}],
|
}],
|
||||||
}
|
}
|
||||||
hook = _get_hook(config, store, 'local-conda')
|
hook = _get_hook(config, store, 'local-conda')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue