aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-22 01:56:37 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-22 01:56:37 +0200
commit39428034caf2a632461f3e88d9289c0863bcf1ce (patch)
treefb3320760a8cc6fa71b62901a71191adc1dddddf
parentf4a4eecd538c3130ebb15f51e80edc6bfa65af75 (diff)
downloadrefcat-39428034caf2a632461f3e88d9289c0863bcf1ce.tar.gz
refcat-39428034caf2a632461f3e88d9289c0863bcf1ce.zip
apply style fixes
-rw-r--r--python/refcat/cli.py2
-rw-r--r--python/refcat/deps.py2
2 files changed, 4 insertions, 0 deletions
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.