Fix ruff warnings in pipenv/routines/check.py

This commit is contained in:
Oz Tiram
2023-07-23 08:22:18 +02:00
parent d866aba387
commit 0fbb9b30be
+5 -5
View File
@@ -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: