From 5eec6d9ba883a2cc21f86648ce4796310f9b5f03 Mon Sep 17 00:00:00 2001 From: Luis Roalter Date: Mon, 5 May 2025 11:50:22 +0200 Subject: [PATCH] fix: color update on enforced envs Disable color output at all (when using CLICOLOR_FORCE) to make output of uv pip parseable. --- licensecheck/resolvers/uv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/licensecheck/resolvers/uv.py b/licensecheck/resolvers/uv.py index 8257006..295963a 100644 --- a/licensecheck/resolvers/uv.py +++ b/licensecheck/resolvers/uv.py @@ -33,7 +33,7 @@ def get_reqs( groups_cmd = [f"--group {group}" for group in groups] extras_cmd = [f"--extra {extra}" for extra in extras] command = ( - f"uv pip compile --index {index_url}" + f"uv pip compile --color never --index {index_url}" f" {' '.join(requirementsPaths)} {' '.join(extras_cmd)} {' '.join(groups_cmd)}" )