Skip to content

Commit b7358d7

Browse files
committed
Add without_runtime_setup to plain code
1 parent 8b8cc2d commit b7358d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plain-code/plain/code/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@
1010

1111
from plain.cli import register_cli
1212
from plain.cli.print import print_event
13+
from plain.cli.runtime import without_runtime_setup
1314

1415
from .biome import Biome
1516

1617
DEFAULT_RUFF_CONFIG = Path(__file__).parent / "ruff_defaults.toml"
1718

1819

20+
@without_runtime_setup
1921
@register_cli("code")
2022
@click.group()
2123
def cli() -> None:
2224
"""Code formatting and linting"""
2325
pass
2426

2527

28+
@without_runtime_setup
2629
@cli.command()
2730
@click.option("--force", is_flag=True, help="Reinstall even if up to date")
2831
@click.pass_context
@@ -52,6 +55,7 @@ def install(ctx: click.Context, force: bool) -> None:
5255
click.secho("Biome already installed", fg="green")
5356

5457

58+
@without_runtime_setup
5559
@cli.command()
5660
def update() -> None:
5761
"""Update the Biome standalone binary to the latest release."""
@@ -67,6 +71,7 @@ def update() -> None:
6771
click.secho(f"Biome {version} installed", fg="green")
6872

6973

74+
@without_runtime_setup
7075
@cli.command()
7176
@click.pass_context
7277
@click.argument("path", default=".")
@@ -100,6 +105,7 @@ def check(ctx: click.Context, path: str) -> None:
100105
sys.exit(result.returncode)
101106

102107

108+
@without_runtime_setup
103109
@register_cli("fix")
104110
@cli.command()
105111
@click.pass_context

0 commit comments

Comments
 (0)