Skip to content

Commit 02df8e3

Browse files
mchehabJonathan Corbet
authored andcommitted
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 <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/7b3c8a932c50ae52ce4c848676602b46d1d4a8f9.1744106242.git.mchehab+huawei@kernel.org
1 parent 9cbc2d3 commit 02df8e3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.pylintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[MASTER]
2+
init-hook='import sys; sys.path += ["scripts/lib/kdoc", "scripts/lib/abi"]'

0 commit comments

Comments
 (0)