From 39428034caf2a632461f3e88d9289c0863bcf1ce Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 22 Jul 2021 01:56:37 +0200 Subject: apply style fixes --- python/refcat/cli.py | 2 ++ python/refcat/deps.py | 2 ++ 2 files changed, 4 insertions(+) (limited to 'python') diff --git a/python/refcat/cli.py b/python/refcat/cli.py index ced85f0..5d5f85f 100644 --- a/python/refcat/cli.py +++ b/python/refcat/cli.py @@ -155,6 +155,7 @@ def deps(): except TaskClassNotFoundException as exc: print("no such task") + def dot(): """ Render task dependencies as dot. @@ -168,6 +169,7 @@ def dot(): except TaskClassNotFoundException as exc: print("no such task") + def config(): """ Dump config to stdout. diff --git a/python/refcat/deps.py b/python/refcat/deps.py index de76eba..4150eaf 100644 --- a/python/refcat/deps.py +++ b/python/refcat/deps.py @@ -14,6 +14,7 @@ def dump_deps(task=None, indent=0): for dep in g[task]: dump_deps(task=dep, indent=indent + 1) + def dump_deps_dot(task=None): if task is None: return @@ -25,6 +26,7 @@ def dump_deps_dot(task=None): print(""" "{}" -> "{}"; """.format(k, v)) print("}") + def build_dep_graph(task=None): """ Return the task graph as dict mapping nodes to children. -- cgit v1.2.3