We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3126802 + 1c439b5 commit 8bf22bdCopy full SHA for 8bf22bd
pre_commit/commands/install_uninstall.py
@@ -103,8 +103,7 @@ def _install_hook_script(
103
104
hook_file.write(before + TEMPLATE_START)
105
hook_file.write(f'INSTALL_PYTHON={shlex.quote(sys.executable)}\n')
106
- # TODO: python3.8+: shlex.join
107
- args_s = ' '.join(shlex.quote(part) for part in args)
+ args_s = shlex.join(args)
108
hook_file.write(f'ARGS=({args_s})\n')
109
hook_file.write(TEMPLATE_END + after)
110
make_executable(hook_path)
0 commit comments