~aleteoryx/sexchat

ref: 42778e105caee9ee8a287b34b7d87d81331455dc sexchat/plugins/python/python_style_guide.md -rw-r--r-- 451 bytes
42778e10Aleteoryx restrict self-sent CTCP handling 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',
}