]> granicus.if.org Git - graphviz/commitdiff
disable Pylint’s missing-function-docstring warnings on main
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Jul 2021 02:38:42 +0000 (19:38 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 9 Jul 2021 04:46:51 +0000 (21:46 -0700)
Documenting main does not really make sense.

ci/generate_configuration_table.py
doc/infosrc/jconvert.py
rtest/generate_graph.py

index f8f78817ae6ecd0e42df8168bdb5b85e45dba853..2ef1c56eb61e0b2eca50b446d8088e609410efd4 100755 (executable)
@@ -11,7 +11,7 @@ import json
 import sys
 import re
 
-def main():
+def main(): # pylint: disable=missing-function-docstring
   supported_output_formats = [
       "JSON",
       "HTML",
index e45c30854cd66f712f7f12a9104747d361b67f3f..c7f4f60214fc447f5bd6e9810afb1b2790a531e1 100755 (executable)
@@ -6,7 +6,7 @@ import json
 from json2html import json2html
 
 
-def main():
+def main(): # pylint: disable=missing-function-docstring
   parser = argparse.ArgumentParser(description="Converts a json file to a html file")
   parser.add_argument("input", type=argparse.FileType("rt"), help="Input file")
   parser.add_argument("output", type=argparse.FileType("wt"), help="Output file")
index 6274d6c41afff4ba66333a8a1d45cadc2159635c..a4c74defc0fdf7fd31d6f64afcc63370b4f0776b 100755 (executable)
@@ -145,7 +145,7 @@ def process(args: List[str], g: Graph, timeout: Optional[int]) -> Result:
     return run(args + [src], timeout)
 
 
-def main(args: List[str]) -> int:
+def main(args: List[str]) -> int: # pylint: disable=missing-function-docstring
 
   # parse command line arguments
   parser = argparse.ArgumentParser(description="Graphviz graph generator")