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.
2 parents 3126802 + 1c439b5 commit 8bf22bdCopy full SHA for 8bf22bd
1 file changed
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