1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Coding guidelines were not PEP8 compliant :-) (#25589)

This commit is contained in:
Dag Wieers 2017-06-13 10:25:37 +02:00 committed by John R Barker
parent e017bf964e
commit f380fd84c5

View file

@ -101,11 +101,11 @@ Use the dict constructor where possible when allocating dictionaries:
# this: # this:
foo = dict( foo = dict(
a = 12, a=12,
b = 34 b=34,
) )
Line up variables Do not line up variables
# not this # not this
a = 12 a = 12
@ -130,15 +130,15 @@ Don't use line continuations:
Spacing: Spacing:
# no
x=[1,2,3]
# no # no
x = [1,2,3] x = [1,2,3]
# yes # no
x = [ 1, 2, 3 ] x = [ 1, 2, 3 ]
# yes
x = [1, 2, 3]
Spacing continued: Spacing continued:
# no # 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. If you have questions about this document, please ask on the ansible-devel mailing list.
Thank you! Thank you!