<aside> 📌 This style guide is publicly accessible, linked to from the engineering site.

</aside>

Introduction

This document defines the Python coding conventions for Thread. Many of these conventions are checked with tools. Where they are, the error code is given in brackets: [F123].

Rationale

In a team environment, code that is difficult to read causes problems:

Good style often increases the level of code review that is possible.

When to violate this guide

Sometimes this guide does not apply. When in doubt, use your best judgment. Look at other examples and decide what looks best. Two good reasons to break a particular rule:

Style

Indentation