Skip to content

Commit bf52282

Browse files
authored
fix(python): add --quiet flag to pip report command (guacsec#430)
## Summary - Adds `--quiet` flag to the `pip install --dry-run --report` command in `PythonPyprojectProvider` to suppress progress messages (e.g. `Processing /path/...`) from contaminating the JSON report on stdout - Aligns with the JS client counterpart which already uses `--quiet` (`trustify-da-javascript-client/src/providers/python_pip_pyproject.js`) Implements [TC-4164](https://redhat.atlassian.net/browse/TC-4164) ## Test plan - [x] All existing Python provider tests pass - [ ] CI integration test `python-3.12-pyproject` passes on all platforms 🤖 Generated with [Claude Code](https://claude.com/claude-code) [TC-4164]: https://redhat.atlassian.net/browse/TC-4164?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent a4069a3 commit bf52282

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/io/github/guacsec/trustifyda/providers/PythonPyprojectProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ String getPipReportOutput(Path manifestDir) {
153153
}
154154

155155
String pip = findPipBinary();
156-
String[] cmd = {pip, "install", "--dry-run", "--ignore-installed", "--report", "-", "."};
156+
String[] cmd = {
157+
pip, "install", "--dry-run", "--ignore-installed", "--quiet", "--report", "-", "."
158+
};
157159
Operations.ProcessExecOutput result =
158160
Operations.runProcessGetFullOutput(manifestDir, cmd, null);
159161
if (result.getExitCode() != 0) {

0 commit comments

Comments
 (0)