From 687b33e1b7b9bc9deec2885bddc4249456c06dd1 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 13 Sep 2024 14:39:03 -0400 Subject: [PATCH] Use pyproject.toml to specify global pylint allows Slightly better than cluttering up the Makefile. Put the configuration in pyproject.toml, because that is what we did for pyright. Signed-off-by: mulhern --- Makefile | 10 ++++------ pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 632fa36ea..604c31fd5 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,12 @@ UNITTEST_OPTS = --verbose # need to be warned. BANDIT_SKIP = --skip B404 -PYLINT_DISABLE = --disable=fixme - .PHONY: lint lint: - pylint setup.py ${PYLINT_DISABLE} - pylint bin/stratis ${PYLINT_DISABLE} - pylint src/stratis_cli --disable=duplicate-code ${PYLINT_DISABLE} --ignore=_introspect.py - pylint tests/whitebox --disable=duplicate-code ${PYLINT_DISABLE} + pylint setup.py + pylint bin/stratis + pylint src/stratis_cli --disable=duplicate-code --ignore=_introspect.py + pylint tests/whitebox --disable=duplicate-code bandit setup.py ${BANDIT_SKIP} bandit bin/stratis ${BANDIT_SKIP} # Ignore B101 errors. We do not distribute optimized code, i.e., .pyo diff --git a/pyproject.toml b/pyproject.toml index 041286d67..b251d5437 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,3 +4,6 @@ build-backend = "setuptools.build_meta" [tool.pyright] include = ["src", "tests", "bin"] + +[tool.pylint."messages control"] +disable = ["fixme"]