Skip to content

Commit

Permalink
♻️ Refactor to shut mypy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Nov 25, 2023
1 parent 2831b0b commit cb35fef
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions idae/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ def run(
--clean can be used without 'SCRIPT'
"""
if not clean and script is None:
if script is None:
if clean:
clean_venvs()
console.print("[green bold]Cleaned all venvs[/]")
raise typer.Exit(code=0)
msg = "Missing argument 'SCRIPT'."
raise UsageError(msg)

Check warning on line 78 in idae/cli.py

View check run for this annotation

Codecov / codecov/patch

idae/cli.py#L77-L78

Added lines #L77 - L78 were not covered by tests
if clean:
clean_venvs()
console.print("[green bold]Cleaned all venvs[/]")
if script is None:
raise typer.Exit(code=0)
# Get script dependencies
pyproject = read(str(script.read_text()))
script_deps = []
Expand Down

0 comments on commit cb35fef

Please sign in to comment.