Loading pre_commit_pylint.py +6 −3 Original line number Diff line number Diff line Loading @@ -45,9 +45,12 @@ def argument_parser(): def main(): ap = argument_parser() opts = ap.parse_args() cmd = ['pip', 'install', '-e', '.'] if opts.extras: cmd.extend(f'.[{target}]' for target in opts.extras) join = ','.join cmd = [ 'pip', 'install', '--upgrade', '--editable', f'.[{join(opts.extras)}]' if opts.extras else '.', ] proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) if proc.returncode: Loading Loading
pre_commit_pylint.py +6 −3 Original line number Diff line number Diff line Loading @@ -45,9 +45,12 @@ def argument_parser(): def main(): ap = argument_parser() opts = ap.parse_args() cmd = ['pip', 'install', '-e', '.'] if opts.extras: cmd.extend(f'.[{target}]' for target in opts.extras) join = ','.join cmd = [ 'pip', 'install', '--upgrade', '--editable', f'.[{join(opts.extras)}]' if opts.extras else '.', ] proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) if proc.returncode: Loading