From f380fd84c54c2d2835bb74d3de3ae6a1cc3ae9f1 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 13 Jun 2017 10:25:37 +0200 Subject: [PATCH] Coding guidelines were not PEP8 compliant :-) (#25589) --- CODING_GUIDELINES.md | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md index 0fc49e8ba72..bc4cee1e507 100644 --- a/CODING_GUIDELINES.md +++ b/CODING_GUIDELINES.md @@ -101,22 +101,22 @@ Use the dict constructor where possible when allocating dictionaries: # this: foo = dict( - a = 12, - b = 34 + a=12, + b=34, ) -Line up variables +Do not line up variables # not this - a = 12 - foosball = 34 - xyz = 'dog' - - # this a = 12 foosball = 34 xyz = 'dog' + # this + a = 12 + foosball = 34 + xyz = 'dog' + Don't use line continuations: # no @@ -130,15 +130,15 @@ Don't use line continuations: Spacing: - # no - x=[1,2,3] - # no x = [1,2,3] - # yes + # no x = [ 1, 2, 3 ] + # yes + x = [1, 2, 3] + Spacing continued: # no @@ -314,7 +314,3 @@ This was not meant to be a scary document, so we hope it wasn't, but we also hop If you have questions about this document, please ask on the ansible-devel mailing list. Thank you! - - - -