Skip to content

Commit

Permalink
Pre commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jyejare committed Oct 23, 2024
1 parent 4cc9a02 commit bda81fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pytest_plugins/requirements/req_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ def packagae_manager(self):
def install_req_deviations(self):
"""Installs new and updates available packages in requirements file"""
if self.req_deviation:
lst_of_reqs = ' '.join(f"'{req}'" for req in self.req_deviation)
if (
subprocess.run(
f"{self.packagae_manager} install {' '.join(f"'{req}'" for req in self.req_deviation)}",
f"{self.packagae_manager} install {lst_of_reqs}",
shell=True,
stdout=subprocess.PIPE,
).returncode
Expand All @@ -110,9 +111,10 @@ def install_req_deviations(self):
def install_opt_deviations(self):
"""Installs new and updates available packages in requirements-optional file"""
if self.opt_deviation:
lst_of_reqs = ' '.join(f"'{req}'" for req in self.opt_deviation)
if (
subprocess.run(
f"{self.packagae_manager} install {' '.join(f'\'{req}\'' for req in self.opt_deviation)}",
f"{self.packagae_manager} install {lst_of_reqs}",
shell=True,
stdout=subprocess.PIPE,
).returncode
Expand Down

0 comments on commit bda81fb

Please sign in to comment.