Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a0d35d commit 460582dCopy full SHA for 460582d
1 file changed
pre_commit/languages/node.py
@@ -38,13 +38,12 @@ def install_environment(repo_cmd_runner):
38
with clean_path_on_failure(repo_cmd_runner.path(ENVIRONMENT_DIR)):
39
# Try and use the system level node executable first
40
try:
41
- python_env.run(
42
- 'nodeenv -n system {{prefix}}{0}'.format(ENVIRONMENT_DIR),
43
- )
+ with clean_path_on_failure(repo_cmd_runner.path(ENVIRONMENT_DIR)):
+ python_env.run(
+ 'nodeenv -n system {{prefix}}{0}'.format(ENVIRONMENT_DIR),
44
+ )
45
except CalledProcessError:
46
# TODO: log failure here
- # cleanup
47
- # TODO: local.path(ENVIRONMENT_DIR).delete()
48
python_env.run(
49
'nodeenv --jobs 4 {{prefix}}{0}'.format(ENVIRONMENT_DIR),
50
)
0 commit comments