From: Matthew Fernandez Date: Sat, 3 Jul 2021 02:10:26 +0000 (-0700) Subject: disable Pylint import-error warnings for gv X-Git-Tag: 2.48.0~9^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8076c7c83c24b977e989b0e26255621cfddd622;p=graphviz disable Pylint import-error warnings for gv This is the Graphviz module itself which is not necessarily expected to be built and available when the test suite is run. --- diff --git a/dot.demo/gv_test.py b/dot.demo/gv_test.py index ba73713bb..9d8513363 100755 --- a/dot.demo/gv_test.py +++ b/dot.demo/gv_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import gv +import gv # pylint: disable=import-error g = gv.digraph("G") n = gv.node(g,"hello") diff --git a/tclpkg/gv/demo/modgraph.py b/tclpkg/gv/demo/modgraph.py index e57a011bc..b15890b2a 100755 --- a/tclpkg/gv/demo/modgraph.py +++ b/tclpkg/gv/demo/modgraph.py @@ -5,7 +5,7 @@ # author: Michael Hohn # based on: modgraph.tcl by John Ellson -import gv +import gv # pylint: disable=import-error modules = open("/proc/modules", "r").readlines() diff --git a/tclpkg/gv/examples/layout.py b/tclpkg/gv/examples/layout.py index 6bf226c31..6cec6bdae 100755 --- a/tclpkg/gv/examples/layout.py +++ b/tclpkg/gv/examples/layout.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import gv +import gv # pylint: disable=import-error def main(): diff --git a/tclpkg/gv/examples/simple.py b/tclpkg/gv/examples/simple.py index 55f92c0d8..eba1e3e79 100755 --- a/tclpkg/gv/examples/simple.py +++ b/tclpkg/gv/examples/simple.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 -import gv + +import gv # pylint: disable=import-error # create a new empty graph G = gv.digraph("G") diff --git a/tclpkg/gv/test.py b/tclpkg/gv/test.py index af434922c..d2fd9084e 100644 --- a/tclpkg/gv/test.py +++ b/tclpkg/gv/test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import gv +import gv # pylint: disable=import-error g = gv.digraph("G") print(gv.setv(g,"aaa","xxx"))