From: Mauro Carvalho Chehab Date: Tue, 8 Apr 2025 10:09:21 +0000 (+0800) Subject: docs: add a .pylintrc file with sys path for docs scripts X-Git-Tag: v6.16-rc1~176^2~49^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02df8e3b333c3d8550a22ffdfc969caec8462df9;p=thirdparty%2Flinux.git docs: add a .pylintrc file with sys path for docs scripts The docs scripts that are used by Documentation/sphinx are using scripts/lib/* directories to place classes that will be used by both extensions and scripts. When pylint is used, it needs to identify the path where such scripts are, otherwise it will bail out. Add a simple RC file placing the location of such files. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jonathan Corbet Link: https://lore.kernel.org/r/7b3c8a932c50ae52ce4c848676602b46d1d4a8f9.1744106242.git.mchehab+huawei@kernel.org --- diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000000000..30b8ae1659f8a --- /dev/null +++ b/.pylintrc @@ -0,0 +1,2 @@ +[MASTER] +init-hook='import sys; sys.path += ["scripts/lib/kdoc", "scripts/lib/abi"]'