Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

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