|
33 | 33 | @click.option("-r", "--reload", is_flag=True, help="Enable live data pack reloading.")
|
34 | 34 | @click.option("-l", "--link", metavar="WORLD", help="Link the project before watching.")
|
35 | 35 | @click.option("-c", "--clean", is_flag=True, help="Clean the output folder.")
|
36 |
| -@click.option("--log", default="INFO", type=str, help="Set the logger level") |
37 |
| -def dev(ctx: click.Context, project: Project, modules: tuple[str, ...], watch: bool, reload: bool, link: str | None, clean: bool, log: int | str): |
| 36 | +@click.option("--log", default="INFO", type=str, help="Set the logger level.") |
| 37 | +@click.option("-nl", "--no-lint", is_flag=True, help="Skips the mecha linting step.") |
| 38 | +def dev(ctx: click.Context, project: Project, modules: tuple[str, ...], watch: bool, reload: bool, link: str | None, clean: bool, log: int | str, no_lint: bool): |
38 | 39 | """Build or watch modules for development."""
|
39 | 40 |
|
40 | 41 | module_folders = sorted(glob.glob("gm4_*"))
|
@@ -79,6 +80,8 @@ def dev(ctx: click.Context, project: Project, modules: tuple[str, ...], watch: b
|
79 | 80 | # command-determined config options
|
80 | 81 | broadcast_config: dict[str, Any] = next((p for p in config["pipeline"] if isinstance(p, dict))) # type: ignore
|
81 | 82 | broadcast_config["broadcast"] = selected_modules
|
| 83 | + if no_lint: |
| 84 | + broadcast_config["require"].insert(0, "gm4.plugins.test.skip_mecha_lint") |
82 | 85 | if reload:
|
83 | 86 | broadcast_config["require"].insert(0, "beet.contrib.livereload")
|
84 | 87 |
|
|
0 commit comments