zuke.tools.knip
@zuke/knip 1.1.0: @zuke/knip — a typed KnipTasks wrapper for the [Knip](https://knip.dev) CLI (unused files, dependencies, and exports), for use in Zuke builds.
zuke on PyPI ↗ 2 symbols
Symbols
class KnipRunSettings(ToolSettings) Settings for a knip run.
-
production() -> SelfRestrict analysis to production code paths (
--production). -
strict() -> SelfTreat the production set strictly (
--strict). -
fix() -> SelfAuto-remove unused exports/dependencies where possible (
--fix). -
cache() -> SelfEnable the analysis cache (
--cache). -
no_exit_code() -> SelfAlways exit 0, even when issues are found (
--no-exit-code). -
config(path: str) -> SelfUse an explicit config file (
--config). -
workspace(name: str) -> SelfRestrict to a single workspace (
--workspace). -
reporter(name: str) -> SelfChoose the reporter, e.g.
jsonorcompact(--reporter). -
include(*types: str) -> SelfLimit to specific issue types, e.g.
files,dependencies(--include).
class KnipTasks Typed task functions for the knip CLI.
-
static async run(ctx: ServiceContext, configure: Callable[[KnipRunSettings], KnipRunSettings] | None=None) -> ExecResultFind unused files, dependencies, and exports:
knip.