]> granicus.if.org Git - graphviz/commitdiff
disable Pylint warning about use of the global statement
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 2 May 2021 01:26:41 +0000 (18:26 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 May 2021 03:53:01 +0000 (20:53 -0700)
While this may be considered a code smell in larger Python code bases, the use
of global in the Graphviz scripts is reasonably well motivated.

.pylintrc

index 9c94eff6e15eb72e92d340cdd2d252f8666dadf5..62ba05ebefad6654851049ecf8e14ecedd1da337 100644 (file)
--- a/.pylintrc
+++ b/.pylintrc
@@ -145,7 +145,8 @@ disable=print-statement,
         logging-fstring-interpolation,
         subprocess-run-check,
         invalid-name,
-        too-many-locals
+        too-many-locals,
+        global-statement
 
 # Enable the message, report, category or checker with the given id(s). You can
 # either give multiple identifier separated by comma (,) or put this option