mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Merge 30382b9200 into 8416413a0e
This commit is contained in:
commit
c9a70b6bfa
2 changed files with 46 additions and 0 deletions
|
|
@ -99,6 +99,14 @@ def install_environment(
|
|||
shutil.copy(manifest_file, envdir)
|
||||
break
|
||||
|
||||
# copy `src` files if they exist
|
||||
src_dir = prefix.path('src')
|
||||
if os.path.isdir(src_dir):
|
||||
shutil.copytree(
|
||||
src_dir, os.path.join(envdir, 'src'),
|
||||
dirs_exist_ok=True,
|
||||
)
|
||||
|
||||
# Julia code to instantiate the hook environment
|
||||
julia_code = """
|
||||
@assert length(ARGS) > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue