This repository has been archived on 2023-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
py-libreauth/CONTRIBUTING.md
Rodolphe Breard d32160a4c2 first commit
2017-11-26 21:39:20 +01:00

1.2 KiB

How to contribute

Reporting bugs

If you find a bug in this project, please open an issue and describe the problem. When reporting a bug, please follow the generic bug reporting recommendations.

Pull requests

When submitting code, please follow the following guidelines:

  • report any remarkable change in the change log;
  • document every publicly accessible item (module, function, …) and insert examples;
  • write unit tests that checks your code is working well;
  • for bug-fixes, write unit tests showing the corrected bug;
  • for new features, do not forget to create the C-bindings;
  • yes, unit tests have to be written for C-bindings too;
  • launch the test suite before submitting your code, obviously every single test have to pass.

Coding style

  • Follow PEP8 as much as possible;
  • indent code with 4 spaces;
  • no trailing whitespace at the end of lines;
  • use descriptive variable names;
  • functions should be as short as possible, do only one thing and do it well.

In a more general way, if you feel your code doesn't look like the project's one, fix it.