~aleteoryx/sexchat

ref: a5ac3da4bb20b989218781c720fcc8b96e6611e1 sexchat/plugins/python/python_style_guide.md -rw-r--r-- 451 bytes
a5ac3da4Aleteoryx The wall is built. 4 months ago

#HexChat Python Module Style Guide

(This is a work in progress).

#General rules

  • PEP8 as general fallback recommendations
  • Max line length: 120
  • Avoid overcomplex compound statements. i.e. dont do this: somevar = x if x == y else z if a == b and c == b else x

#Indentation style

#Multi-line functions

foo(really_long_arg_1,
    really_long_arg_2)

#Mutli-line lists/dicts

foo = {
    'bar': 'baz',
}