zuke.tools.dpdm
@zuke/dpdm 1.1.0: @zuke/dpdm — a typed DpdmTasks wrapper for the [dpdm](https://github.com/acrazing/dpdm) CLI (module dependency graph and circular-import analysis), for use in Zuke builds.
zuke on PyPI ↗ 2 symbols
Symbols
class DpdmAnalyzeSettings(ToolSettings) Settings for a dpdm analysis run.
-
transform() -> SelfTransform TypeScript modules to JavaScript before analysis (
--transform). -
no_tree() -> SelfSuppress the dependency tree output (
--no-tree). -
no_circular() -> SelfSuppress the circular-dependency output (
--no-circular). -
no_warning() -> SelfSuppress warnings about unresolved/missing modules (
--no-warning). -
no_progress() -> SelfDisable the progress bar (
--no-progress). -
output(path: str) -> SelfWrite the analysis as JSON to a file (
--output). -
tsconfig(path: str) -> SelfUse an explicit tsconfig for module resolution (
--tsconfig). -
context(path: str) -> SelfSet the context directory used to shorten printed paths (
--context). -
extensions(*exts: str) -> SelfExtensions to resolve, e.g.
.ts,.tsx(--extensions). -
js(*exts: str) -> SelfExtensions treated as JavaScript-like (
--js). -
include(pattern: str) -> SelfOnly analyze files matching this regular expression (
--include). -
exclude(pattern: str) -> SelfSkip files matching this regular expression (
--exclude). -
skip_dynamic_imports(mode: Literal['circular', 'tree']) -> SelfSkip dynamic imports when detecting
circularortree(--skip-dynamic-imports). -
detect_unused_files_from(glob: str) -> SelfDetect unused files starting from this glob (
--detect-unused-files-from). -
exit_code(rule: str) -> SelfExit with a code when a case occurs, e.g.
circular:1(--exit-code). -
entries(*paths: str) -> SelfThe entry files or globs to analyze (appended after all options).
class DpdmTasks Typed task functions for the dpdm CLI.
-
static async analyze(ctx: ServiceContext, configure: Callable[[DpdmAnalyzeSettings], DpdmAnalyzeSettings] | None=None) -> ExecResultAnalyze dependencies and circular imports:
dpdm <flags> <entries...>.