Re: [PATCH 00/13] Add kernel-doc modules to Documentation/tools

From: Jonathan Corbet

Date: Wed Jan 14 2026 - 13:01:46 EST


Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx> writes:

> With this version, python files inside tools/ or scripts/
> can be documented, but there is a catch (probably due to PEP8):
>
> - files must end with ".py"
> - file names can't have "-".
>
> So, unfortunately, we can't document kernel-doc.py, except if
> we rename it to kernel_doc.py.

That is ... irritating ...

You've probably seen my other series to finally ... rename
kernel-doc.py. We could certainly rename it to something different.
But I really dislike having language extensions on files meant to be
executed as commands; you shouldn't care what language it's written in
when you run it.

In the end, I'd say let's not worry about running autodoc on that file.
All there is to document is its command line, and we can certainly
maintain that separately.

jon