Contributing to Ibis¶
Clone the Repository¶
To contribute to ibis you need to clone the repository from GitHub:
git clone https://github.com/ibis-project/ibis
Set Up a Development Environment¶
Create a Conda environment suitable for ibis development:
conda env create -n ibis-dev --file ci/requirements-3.7-dev.yml
Activate the environment
conda activate ibis-dev
Install your local copy of Ibis into the Conda environment. This also sets up a pre-commit hook to check style and formatting before committing.
Run the Test Suite¶
For those unfamiliar with
docker-compose, here are some
rough steps on how to get things set up:
Here are the steps to start database services and run the test suite:
make --directory ibis init make --directory ibis testparallel
You can also run
pytest tests on the command line if you are not testing
integration with running database services. For example, to run all the tests
Style and Formatting¶
We use flake8,
isort to ensure our code
is formatted and linted properly. If you have properly set up your development
environment by running
make develop, the pre-commit hooks should check
that your proposed changes continue to conform to our style guide.
We use numpydoc as our standard format for docstrings.
We aim to make our individual commits small and tightly focused on the feature they are implementing. If you find yourself making functional changes to different areas of the codebase, we prefer you break up your changes into separate Pull Requests. In general, a philosophy of one Github Issue per Pull Request is a good rule of thumb, though that isn’t always possible.
We avoid merge commits (and in fact they are disabled in the Github repository)
so you may be asked to rebase your changes on top of the latest commits to
master if there have been changes since you last updated a Pull Request.
Rebasing your changes is usually as simple as running
git pull upstream master --rebase and then force-pushing to your branch:
git push origin <branch-name> -f.
Well-structed commit messages allow us to generate comprehensive release notes
and make it very easy to understand what a commit/PR contributes to our
codebase. Commit messages and PR titles should be prefixed with a standard
code the states what kind of change it is. They fall broadly into 3 categories:
BUG (bug), and
SUPP (support). The
category has some more fine-grained aliases that you can use, such as
CI (continuous integration),
Maintainers generally perform two roles, merging PRs and making official releases.
We have a CLI script that will merge Pull Requests automatically once they have
been reviewed and approved. See the help message in
full details. If you have two-factor authentication turned on in Github, you
will have to generate an application-specific password by following this
You will then use that generated password on the command line for the
Code of Conduct¶
Ibis is governed by the NumFOCUS code of conduct, which in a short version is:
Be kind to others. Do not insult or put down others. Behave professionally. Remember that harassment and sexist, racist, or exclusionary jokes are not appropriate for NumFOCUS.
All communication should be appropriate for a professional audience including people of many different backgrounds. Sexual language and imagery is not appropriate.
NumFOCUS is dedicated to providing a harassment-free community for everyone, regardless of gender, sexual orientation, gender identity, and expression, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of community members in any form.
Thank you for helping make this a welcoming, friendly community for all.