Change a dependency path to be relative in tests

This commit is contained in:
Youhei Sakurai 2024-10-14 11:21:27 +09:00
parent cc4a522415
commit 837d6172bb
No known key found for this signature in database
GPG key ID: B162D78918AF40D3

View file

@ -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}