zuke.tools.biome
@zuke/biome 1.1.0: @zuke/biome — typed BiomeTasks wrappers for the [Biome](https://biomejs.dev) CLI (lint + format + import organizing in one tool), for use in Zuke builds.
zuke on PyPI ↗ 6 symbols
Symbols
class BiomeCheckSettings(BiomeSettings) Settings for biome check (lint + format + organize-imports).
-
write() -> SelfWrite safe fixes back to disk (
--write). -
unsafe() -> SelfAlso apply unsafe fixes; implies writing (
--unsafe).
class BiomeCiSettings(BiomeSettings) Settings for biome ci (read-only check tuned for CI).
class BiomeFormatSettings(BiomeSettings) Settings for biome format.
-
write() -> SelfWrite formatting changes back to disk (
--write).
class BiomeLintSettings(BiomeSettings) Settings for biome lint.
-
write() -> SelfWrite safe lint fixes back to disk (
--write). -
unsafe() -> SelfAlso apply unsafe fixes; implies writing (
--unsafe).
class BiomeSettings(ToolSettings) Base for all biome subcommand settings: the binary is biome, and the common filters (config path, reporter, --staged, --changed) plus the trailing path arguments are shared by every subcommand.
-
paths(*paths: str) -> SelfFiles or directories to operate on; omit to use the configured includes.
-
config(path: str) -> SelfUse an explicit configuration file (
--config-path). -
reporter(name: str) -> SelfChoose the diagnostics reporter, e.g.
githuborjson(--reporter). -
staged() -> SelfRestrict to files staged in git (
--staged). -
changed() -> SelfRestrict to files changed against the VCS base (
--changed).
class BiomeTasks Typed task functions for the biome CLI.
-
static async check(ctx: ServiceContext, configure: Callable[[BiomeCheckSettings], BiomeCheckSettings] | None=None) -> ExecResultLint, format, and organize imports:
biome check. -
static async format(ctx: ServiceContext, configure: Callable[[BiomeFormatSettings], BiomeFormatSettings] | None=None) -> ExecResultFormat code:
biome format. -
static async lint(ctx: ServiceContext, configure: Callable[[BiomeLintSettings], BiomeLintSettings] | None=None) -> ExecResultLint code:
biome lint. -
static async ci(ctx: ServiceContext, configure: Callable[[BiomeCiSettings], BiomeCiSettings] | None=None) -> ExecResultRead-only CI check:
biome ci.