mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Apply interpreter version defaulting to local hooks too
This commit is contained in:
parent
39d5205e31
commit
6a0fe9889b
4 changed files with 37 additions and 39 deletions
|
|
@ -58,13 +58,3 @@ def test_hooks(manifest):
|
|||
'types': ['file'],
|
||||
'exclude_types': [],
|
||||
}
|
||||
|
||||
|
||||
def test_default_python_language_version(store, tempdir_factory):
|
||||
path = make_repo(tempdir_factory, 'python_hooks_repo')
|
||||
repo_path = store.clone(path, git.head_sha(path))
|
||||
manifest = Manifest(repo_path)
|
||||
|
||||
# This assertion is difficult as it is version dependent, just assert
|
||||
# that it is *something*
|
||||
assert manifest.hooks['foo']['language_version'] != 'default'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue