Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ruff-complaints #5807

Merged
merged 11 commits into from
Jul 23, 2023
Prev Previous commit
Next Next commit
Fix ruff warnings in pipenv/routines/check.py
  • Loading branch information
oz123 committed Jul 23, 2023
commit 0fbb9b30beda417bbe25a36bc16e5dc58a9845fe
10 changes: 5 additions & 5 deletions pipenv/routines/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down