-
-
Notifications
You must be signed in to change notification settings - Fork 387
Coding Conventions
J. David Ibáñez edited this page May 26, 2013
·
5 revisions
Just follow PEP7
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
- Only commit Unix-style newlines. This means no CRLF in the repository - just set
core.autocrlf
totrue
if you are writing code on a Windows machine.