1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
# 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](https://try.github.io/). 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](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.
|