From: Eric S. Raymond Date: Wed, 20 Apr 2022 02:41:14 +0000 (-0400) Subject: py;imt cleanup. X-Git-Tag: 1.12~10 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=baab09e3ab873d3a572581ad9d94cefe737e7f01 py;imt cleanup. --- diff --git a/Makefile b/Makefile index 460550b..e392617 100644 --- a/Makefile +++ b/Makefile @@ -140,6 +140,6 @@ CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf cppcheck: cppcheck -I. --template gcc --enable=all $(CSUPPRESSIONS) *.[ch] -PYSUPPRESSIONS = line-too-long,invalid-name,missing-function-docstring,too-many-lines,too-many-branches,global-statement,multiple-imports,too-many-locals,too-many-statements,too-many-nested-blocks,no-else-return,raise-missing-from,redefined-outer-name,consider-using-in +PYSUPPRESSIONS = line-too-long,invalid-name,missing-function-docstring,too-many-lines,too-many-branches,global-statement,multiple-imports,too-many-locals,too-many-statements,too-many-nested-blocks,no-else-return,raise-missing-from,redefined-outer-name,consider-using-in,dict-iter-missing-items pylint: @pylint --score=n --disable=$(PYSUPPRESSIONS) *.py */*.py diff --git a/make_graph.py b/make_graph.py index f4e1b11..cd085f4 100755 --- a/make_graph.py +++ b/make_graph.py @@ -103,7 +103,7 @@ def reveal(objname): return True obj = object_lookup[objname] return not obj.get("immovable") - + if __name__ == "__main__": with open("adventure.yaml", "r") as f: db = yaml.safe_load(f)