mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Fix ruff warnings in pipenv/routines/check.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user