Skip to content

Commit

Permalink
_virtual_env: Pipe installation output to /dev/null (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuo-cpp authored Jan 19, 2022
1 parent b5e2ac0 commit a438cb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pip_audit/_virtual_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ def post_setup(self, context):
*self._install_args,
]
try:
subprocess.run(package_install_cmd, check=True)
subprocess.run(
package_install_cmd,
check=True,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
)
except subprocess.CalledProcessError as cpe:
raise VirtualEnvError(f"Failed to install packages: {package_install_cmd}") from cpe

Expand Down

0 comments on commit a438cb2

Please sign in to comment.