Skip to content

Commit

Permalink
🐛 Try...
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Nov 25, 2023
1 parent c8626eb commit 8fa7b6f
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions idae/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,20 @@ def run(
resolve_path=True,
help="The path of the script to run (module only)",
),
python_flags: Annotated[
Optional[ # noqa: UP007 # Typer can't handle unions yet
List[str] # noqa: UP006
], # and Typer can't list[X]
typer.Option(help="Extra flags to pass to Python"),
] = None,
ignore_version: Annotated[
bool,
typer.Option(
"--ignore-version",
"-i",
help="Ignore Python version requirements specified in the script",
),
] = False,
force_version: Annotated[
Optional[str], # noqa: UP007
typer.Option(
"--force-version",
"-f",
help="Force idae to use a specific Python version",
),
] = None,
python_flags: Optional[ # noqa: UP007 # Typer can't handle unions yet
List[str] # noqa: UP006 # and Typer can't list[X]
] = typer.Option(help="Extra flags to pass to Python"),
ignore_version: bool = typer.Option(
"--ignore-version",
"-i",
default=False,
help="Ignore Python version requirements specified in the script",
),
force_version: Optional[str] = typer.Option( # noqa: UP007
"--force-version",
"-f",
help="Force idae to use a specific Python version",
),
) -> None:
"""Automatically install necessary dependencies to run a Python script."""
# Get script dependencies
Expand Down

0 comments on commit 8fa7b6f

Please sign in to comment.