Skip to content
J. David Ibáñez edited this page May 26, 2013 · 5 revisions

C

Just follow PEP7

Python

We use PEP8 coding conventions. With one exception:

  • Method definitions inside a class are separated by two blank lines.

Tools:

  • PyFlakes detects some simple errors.
  • pep8 checks for coding style conformance to PEP8.
  • Flake8 combines PyFlakes and pep8 into a single tool.
  • PyLint finds errors the other tools don't.

Before submitting a pull request call pep8, it must be silent:

$ pep8

Common to C & Python

  • Only commit Unix-style newlines. This means no CRLF in the repository - just set core.autocrlf to true if you are writing code on a Windows machine.
Clone this wiki locally