Re: [PATCH 1/1] doc: codingstyle: Python coding style

2023-04-19 Thread Simon Glass
On Wed, 19 Apr 2023 at 18:45, Heinrich Schuchardt
 wrote:
>
> Indicate that we follow PEP8 and PEP257.
>
> Signed-off-by: Heinrich Schuchardt 
> ---
>  doc/develop/codingstyle.rst | 7 +++
>  1 file changed, 7 insertions(+)
>

Reviewed-by: Simon Glass 


[PATCH 1/1] doc: codingstyle: Python coding style

2023-04-19 Thread Heinrich Schuchardt
Indicate that we follow PEP8 and PEP257.

Signed-off-by: Heinrich Schuchardt 
---
 doc/develop/codingstyle.rst | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/doc/develop/codingstyle.rst b/doc/develop/codingstyle.rst
index 1d5d0192b3..3d05a6b988 100644
--- a/doc/develop/codingstyle.rst
+++ b/doc/develop/codingstyle.rst
@@ -19,6 +19,10 @@ The following rules apply:
   applies only to Linux, not to U-Boot. Only large hunks which are copied
   unchanged from Linux may retain that comment format.
 
+* Python code shall conform to `PEP8 (Style Guide for Python Code)
+  `_. Use `pylint
+  `_ for checking the code.
+
 * Use patman to send your patches (``tools/patman/patman -H`` for full
   instructions). With a few tags in your commits this will check your patches
   and take care of emailing them.
@@ -67,6 +71,9 @@ documentation is strongly advised. The Linux kernel 
`kernel-doc
 `_
 documentation applies with no changes.
 
+Our Python code documentation follows `PEP257 (Docstring Conventions)
+`_.
+
 Use structures for I/O access
 -
 
-- 
2.39.2