docs/manual: PEP8 coding style for Python scripts
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Mon, 24 Apr 2017 01:33:56 +0000 (22:33 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 27 Apr 2017 19:37:50 +0000 (21:37 +0200)
The advantages of using a pre-existing coding style instead of creating
our own are:
- documenting on the manual takes a single sentence;
- there are automatic tools to help during development/review.

So document that PEP8 recommendation should be followed.

Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Samuel Martin <s.martin49@gmail.com>
Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
docs/manual/writing-rules.txt

index e2ad41ebc3e3da6581e36449ffb87c0d809e7555..3a2c8dcb3739d7d9cc282e566ea66d7677eec838 100644 (file)
@@ -143,3 +143,8 @@ http://www.methods.co.nz/asciidoc/[asciidoc] format.
 
 For further details about the http://www.methods.co.nz/asciidoc/[asciidoc]
 syntax, refer to http://www.methods.co.nz/asciidoc/userguide.html[].
+
+=== Support scripts
+
+Some scripts in the +support/+ directory are written in Python and should follow
+the https://www.python.org/dev/peps/pep-0008/[PEP8 Style Guide for Python Code].