]> granicus.if.org Git - graphviz/commitdiff
disable Pylint import-error warnings for gv
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Jul 2021 02:10:26 +0000 (19:10 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 9 Jul 2021 04:46:51 +0000 (21:46 -0700)
This is the Graphviz module itself which is not necessarily expected to be built
and available when the test suite is run.

dot.demo/gv_test.py
tclpkg/gv/demo/modgraph.py
tclpkg/gv/examples/layout.py
tclpkg/gv/examples/simple.py
tclpkg/gv/test.py

index ba73713bbf0c1ee15526606db5a127318dafe6e0..9d851336366b56e11aeaee3c043ed28945c2c66f 100755 (executable)
@@ -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")
index e57a011bcee11098cecbfa2187093cb91a908c92..b15890b2a84b69da2e5492237de24cc74a9fe781 100755 (executable)
@@ -5,7 +5,7 @@
 # author: Michael Hohn <mhhohn@lbl.gov>
 #  based on: modgraph.tcl by John Ellson <ellson@research.att.com>
 
-import gv
+import gv # pylint: disable=import-error
 
 modules = open("/proc/modules", "r").readlines()
 
index 6bf226c31937cc092d9deeb5cb533c6f50d54309..6cec6bdae6129eb10891f1bc8bc05ddad1cc4ee3 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-import gv
+import gv # pylint: disable=import-error
 
 
 def main():
index 55f92c0d8eec63530471634245dca0424c86b9a6..eba1e3e791745d6f7cef2adfc779c7f8704b3523 100755 (executable)
@@ -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")
index af434922c0d122abcc6e062f5206a79c15b25175..d2fd9084e8592b3614fcd618f15076c68642ad3f 100644 (file)
@@ -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"))