We love your input! 🚀 We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug.
- Discussing the current state of the code.
- Submitting a fix.
- Proposing new features.
- Becoming a maintainer.
We use github to host code, track issues and feature requests, and accept pull requests.
We Use Github Flow, So All Code Changes Happen Through Pull Requests
Pull requests are the best way to propose changes to the codebase (we use Github Flow). We actively welcome your pull requests:
- Fork the repo and create your branch from
main
. - Create a new feature branch to implement your changes on.
- Add tests if you've added code that should be tested.
- If you've changed the internal working of the repository, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
As the README explains, this repository uses GitHub actions to create several derivative databases from the main databases. By default, the create_db_derivatives.yaml action that makes these derivative databases is disabled on forks. You therefore have to follow the following steps if you want this action to automatically generate the correct derivative databases on your fork:
- Set the
CREATE_DERIVATIVES
repository variable totrue
in your repository settings (see the GitHub documentation). - Change the default
GITHUB_TOKEN
permissions toRead and write permission
(see the GitHub documentation).
Report bugs using Github's issues
This is an example of a bug report, and I think it's a good model. Here's another example from Craig Hockenberry, an app developer greatly respected in the community.
This is an example of a bug report, and I think it's a good model. Here's another example from Craig Hockenberry, an app developer greatly respected in the community.
Great Bug Reports tend to have:
- A quick summary and/or background.
- Steps to reproduce:
- Be specific!
- Give sample code if you can. A stackoverflow question includes sample code that anyone with a base R setup can run to reproduce the error.
- What you expected would happen
- What actually happens.
- Notes (possibly including why you think this might be happening or stuff you tried that didn't work).
People love thorough bug reports. I'm not even kidding.
We use black formatter to format our python code. You are advised to use flake8 for linting your code.
This document was adapted from the open-source contribution guidelines for Facebook's Draft.