FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

hexchat/plugins/python/python_style_guide.md at master · iCodeIN/hexchat · GitHub

forked from hexchat/hexchat

Latest commit

 

History

History
26 lines (18 loc) · 451 Bytes

File metadata and controls

26 lines (18 loc) · 451 Bytes

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',
}

Back | FazBrowse Home | New Git URL