From c521a7c5fc41b912d6ec348a04bdf609dd269fa2 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 12 Nov 2026 17:32:39 +0100 Subject: Makefile: T9615: run pylint error checks on all Python files Error checks only covered parts of the tree, so broken imports in helpers, utils, validators and Python subpackages went unnoticed. Unused imports were checked in a separate run. Both checks now run in a single pass over every Python file, including scripts without a .py extension. Modules missing from the build environment, generated on install or imported via sys.path changes are ignored globally, as are protoc generated files. --- pyproject.toml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index e1df19cbd..75bb5aa12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,28 @@ [tool.black] skip-string-normalization = true +[tool.pylint.main] +# generated by protoc +ignore-patterns = ['.*_pb2\.py$'] + [tool.pylint.typecheck] -ignored-modules = ["vici"] \ No newline at end of file +# not installed in the build environment, generated on install, or imported +# via sys.path changes +ignored-modules = [ + "ariadne", + "configtree", + "defaults", + "generate_cache", + "graphql", + "makefun", + "multipart", + "op_definition", + "pam", + "pydantic", + "pyroute2", + "vici", + "vpp_papi", + "vyos.xml_ref", +] +# pydantic v2 API, the build environment has v1 +generated-members = ["model_.*"] -- cgit v1.2.3