mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Change a dependency path to be relative in tests
This commit is contained in:
parent
cc4a522415
commit
837d6172bb
1 changed files with 2 additions and 1 deletions
|
|
@ -351,7 +351,8 @@ def local_python_config():
|
|||
repo_path = get_resource_path('python_hooks_repo')
|
||||
manifest = load_manifest(os.path.join(repo_path, C.MANIFEST_FILE))
|
||||
hooks = [
|
||||
dict(hook, additional_dependencies=[repo_path]) for hook in manifest
|
||||
dict(hook, additional_dependencies=[os.path.relpath(repo_path)])
|
||||
for hook in manifest
|
||||
]
|
||||
return {'repo': 'local', 'hooks': hooks}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue