diff --git a/pipenv/routines/check.py b/pipenv/routines/check.py index 186ca6df..b9735995 100644 --- a/pipenv/routines/check.py +++ b/pipenv/routines/check.py @@ -125,11 +125,11 @@ def do_check( "--exit-code" if exit_code else "--continue-on-error", ] - if output == "full-report": - options.append("--full-report") - elif output == "minimal": - options.append("--json") - elif output not in ["screen", "default"]: + formats = {"full-report": "--full-report", "minimal": "--json"} + if output in formats: + options.append(formats.get(output, "")) + + elif output in ["screen", "default"]: options.append(f"--output={output}") if save_json: