pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/libgit2/pygit2/wiki/Coding-Conventions

ll" rel="stylesheet" href="https://github.githubassets.com/assets/primer-0fcd9af82350aeda.css" /> Coding Conventions · libgit2/pygit2 Wiki · GitHub
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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy