Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 3.61 KB

CONTRIBUTING.md

File metadata and controls

67 lines (47 loc) · 3.61 KB

How to contribute to PyOData

Did you find a bug?

  • Create a pull request for simple problems.

  • Otherwise open a new issue with steps to reproduce.

Did you write a patch?

  • Before contributing, please, make yourself familiar with git. You can try git online. Things would be easier for all of us if you do your changes on a branch. Use a single commit for every logical reviewable change, without unrelated modifications (that will help us if need to revert a particular commit). Please avoid adding commits fixing your previous commits, do amend or rebase instead.

  • Every Pull Request must contain test or a good justification why the test part is not included.

  • Every Pull Request must have signed CLA agreement. You can do it simply in the PR checks section.

  • If you believe that it is not necessary to add a test because there is already a test going through the statements you have modified, you are probably wrong because you either added something new and it should be tested or you fixed a bug which was not detected by the test and hence the test must be enhanced (ideally, you first fix the test to reproduce the bug and then you fix the bug).

  • Link commits to issues via referencing issue numbers: https://help.github.com/en/articles/closing-issues-using-keywords

  • Every commit must have either comprehensive commit message saying what is being changed and why or a link (an issue number on Github) to a bug report where this information is available. It is also useful to include notes about negative decisions - i.e. why you decided to not do particular things. Please bare in mind that other developers might not understand what the original problem was.

  • Try to follow the seven rules when writing commit messages: https://chris.beams.io/posts/git-commit/

  • If you are not sure how to write a good commit message, go through the project history to find some inspiration.

  • Update CHANGELOG.md (Unreleased section)

  • Please use following (testing) workflow for your local work (same run on CI Github Actions but should pass locally before creating new PR):

    • use virtualenv, so you are isolated from your system-level installed packages
    • activate the virtualenv according your OS
    • pip install -r dev-requirements.txt
    • pip install -r requirements.txt
    • pytest --cov-report term --cov=pyodata
    • pylint --rcfile=.pylintrc --output-format=parseable --reports=no pyodata
    • flake8 --config=.flake8 pyodata

    There is a Makefile with all targets that can be used as well, if you are fan of makefiles.

Did you fix whitespace, format code, or make a purely cosmetic patch?

Changes that are cosmetic in nature and do not add anything substantial to the stability, functionality, or testability of PyOData will generally not be accepted.

Developer Certificate of Origin (DCO)

Due to legal reasons, contributors will be asked to accept a DCO before they submit the first pull request to this project. SAP uses the standard DCO text of the Linux Foundation. This happens in an automated fashion during the submission process: the CLA assistant tool will add a comment to the pull request. Click it to check the DCO, then accept it on the following screen. CLA assistant will save this decision for upcoming contributions.

This DCO replaces the previously used CLA ("Contributor License Agreement") as well as the "Corporate Contributor License Agreement" with new terms which are well-known standards and hence easier to approve by legal departments. Contributors who had already accepted the CLA in the past may be asked once to accept the new DCO.