From 3f34adad3b6596b3a99175b071f83e70a5e0d594 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 28 Feb 2023 19:46:50 -0500 Subject: [PATCH] Move pylint suppressions inline. --- Makefile | 3 +-- make_dungeon.py | 2 +- make_graph.py | 2 +- tests/coverage_dungeon.py | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 59f7e4e..4e5f331 100644 --- a/Makefile +++ b/Makefile @@ -140,6 +140,5 @@ 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,dict-iter-missing-items pylint: - @pylint --score=n --disable=$(PYSUPPRESSIONS) *.py */*.py + @pylint --score=n *.py */*.py diff --git a/make_dungeon.py b/make_dungeon.py index 5eb7dee..c7c9b75 100755 --- a/make_dungeon.py +++ b/make_dungeon.py @@ -11,7 +11,7 @@ Copyright (c) 2017 by Eric S. Raymond SPDX-License-Identifier: BSD-2-clause """ -# pylint: disable=consider-using-f-string +# pylint: disable=consider-using-f-string,line-too-long,invalid-name,missing-function-docstring,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 import sys, yaml diff --git a/make_graph.py b/make_graph.py index 16ebcba..b9124d6 100755 --- a/make_graph.py +++ b/make_graph.py @@ -14,7 +14,7 @@ Make a DOT graph of Colossal Cave. # Copyright (c) 2017 by Eric S. Raymond # SPDX-License-Identifier: BSD-2-clause -# pylint: disable=consider-using-f-string +# pylint: disable=consider-using-f-string,line-too-long,invalid-name,missing-function-docstring,multiple-imports,redefined-outer-name import sys, getopt, yaml diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index bbab99b..c2ccabe 100755 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -12,7 +12,7 @@ even if the checkfile search doesn't find them. Typically this will because they emit a templated message that can't be regression-tested by equality. """ -# pylint: disable=consider-using-f-string +# pylint: disable=consider-using-f-string,line-too-long,invalid-name,missing-function-docstring,redefined-outer-name import os import sys -- 2.31.1