Skip to content
Bernardo Heynemann edited this page May 18, 2013 · 5 revisions

C

  • Try to keep lines less than 80 characters long. This is a loose requirement, but going significantly over 80 columns is not nice;
  • Indent with 4 spaces;
  • Avoid trailing whitespace [1];
  • Only commit Unix-style newlines[2].

Python

We use PEP8 coding conventions.

See python.org for a detailed instruction.

There are some options for automatically verifying PEP8 compliance before submitting your code:


[1] When copying code from libgit2 the original indentation may be kept.

[2] 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