Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 3, 2023
1 parent b90b427 commit 5677f7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/pipx/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def install_all(
*,
force: bool,
) -> ExitCode:

install_success_count = 0
total_package_count = 0

Expand All @@ -129,9 +128,7 @@ def install_all(
metadata = venvs[package]["metadata"]
package_name = metadata["main_package"]["package"]
package_or_url = metadata["main_package"]["package_or_url"]
python_version = (
"python" + re.findall(r"\d.\d+", metadata["python_version"])[0]
)
python_version = "python" + re.findall(r"\d.\d+", metadata["python_version"])[0]
venv_args = metadata["venv_args"]
pip_args = metadata["main_package"]["pip_args"]
include_dependencies = metadata["main_package"]["include_dependencies"]
Expand Down
4 changes: 1 addition & 3 deletions src/pipx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ def run_pipx_command(args: argparse.Namespace) -> ExitCode: # noqa: C901
suffix=args.suffix,
)
elif args.command == "install-all":
return commands.install_all(
args.json_file, None, constants.LOCAL_BIN_DIR, verbose, force=args.force
)
return commands.install_all(args.json_file, None, constants.LOCAL_BIN_DIR, verbose, force=args.force)
elif args.command == "inject":
return commands.inject(
venv_dir,
Expand Down

0 comments on commit 5677f7b

Please sign in to comment.