summaryrefslogtreecommitdiff
path: root/CODING_GUIDELINES.md
diff options
context:
space:
mode:
authorDag Wieers <dag@wieers.com>2017-06-13 10:25:37 +0200
committerJohn R Barker <john@johnrbarker.com>2017-06-13 09:25:37 +0100
commitf380fd84c54c2d2835bb74d3de3ae6a1cc3ae9f1 (patch)
tree59f9524e217e9ef898f5a488bb6891828df89d20 /CODING_GUIDELINES.md
parente017bf964ecad56e64489fd678f18cc203f0f22d (diff)
downloadansible-f380fd84c54c2d2835bb74d3de3ae6a1cc3ae9f1.tar.gz
Coding guidelines were not PEP8 compliant :-) (#25589)
Diffstat (limited to 'CODING_GUIDELINES.md')
-rw-r--r--CODING_GUIDELINES.md24
1 files changed, 10 insertions, 14 deletions
diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md
index 0fc49e8ba7..bc4cee1e50 100644
--- a/CODING_GUIDELINES.md
+++ b/CODING_GUIDELINES.md
@@ -101,21 +101,21 @@ 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
+ a = 12
foosball = 34
- xyz = 'dog'
+ xyz = 'dog'
# this
- a = 12
+ a = 12
foosball = 34
- xyz = 'dog'
+ xyz = 'dog'
Don't use line continuations:
@@ -131,13 +131,13 @@ Don't use line continuations:
Spacing:
# no
- x=[1,2,3]
+ x = [1,2,3]
# no
- x = [1,2,3]
+ x = [ 1, 2, 3 ]
# yes
- x = [ 1, 2, 3 ]
+ x = [1, 2, 3]
Spacing continued:
@@ -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!
-
-
-
-