You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
Niket Shah edited this page Nov 20, 2017
·
3 revisions
We follow PEP8 convention quite strictly however we do make a few exceptions to this rule. They are as follows:
Maximum Line Length
PEP8 specifies that the maximum line length is to be limited to 79 characters with some lines even shorter than this. We replace this rule and try to stick to 90 characters.
Line Breaking after/before binary operators
The internet seems be divided and PEP8 had some major changes when it comes to this rule. We have agreed that we want to strictly use binary operators on the next line, as opposed to before the line break.
Indentation on line breaks
The indentation should be kept consistent by the use of parenthesis appropriately. Example:
if (cell.location!=always_empty_locationandrandom.random() <self.settings['OBSTACLE_RATIO']):