-
Notifications
You must be signed in to change notification settings - Fork 4
Contributing
Want a new feature? Found a bug? Want to contribute more documentation or a translation perhaps?
KiwiPy is fully open-source and we welcome contributions with open arms.
Here's a short guide on how to contribute.
- Fork the kiwiPy repository
-
git clone
your fork to your local machine - Install kiwiPy with development libraries:
pip install -e .[rmq,pre-commit,tests]
- Create a new branch for your contribution:
git checkout develop
git checkout -b my-contribution
Where my-contribution
can anything meaningful for your contribution.
Any code additions/changes should be tested. We use use Python's unittest
and pytest as part of our testing suite. Find a home for your tests(s) in the test/
folder and then verify that it's all OK by running this from your repository root:
pytest test
The pre-commit hooks will check that your code conforms to the style that we use (almost entirely Google's python style) and perform some other basic checks on your code. To set them up, use:
pre-commit install
This will cause the hooks to be executed at every commit on new files. You can also trigger a manual run using:
pre-commit run --all
Once you're happy with your changed, feel free to directly make a PR into the main. See github's guide on how to do this or just create an issue describing what you'd like to merge and we can help you out.