Contributing¶
First off, thanks for taking the time to contribute!
What should I know before I get started?¶
This project is there to offer a Python library for interacting with ENA‘s API.
The project is developed on GitHub at https://github.com/bebatut/enasearch.
How can I contribute?¶
Reporting mistakes or errors¶
The easiest way to start contributing is to file an issue to tell us about a spelling mistake or a factual error.
Your first content contribution¶
Once you are feeling more comfortable, you can propose changes via Pull Request.
Indeed, to manage changes, we use GitHub flow based on Pull Requests:
- Create a fork of this repository on GitHub
- Clone your fork of this repository to create a local copy on your computer
- Create a new branch in your local copy for each significant change
- Commit the changes in that branch
- Push that branch to your fork on GitHub
- Submit a pull request from that branch to the master repository
- If you receive feedback, make changes in your local clone and push them to your branch on GitHub: the pull request will update automatically
For beginners, the GitHub interface will help you in the process of editing a file. It will automatically create a fork of this repository where you can safely work and then submit the changes as a pull request without having to touch the command line.
Tests¶
The code of ENASearch is covered by tests. They are run automatically on Travis. You can activate Travis on your fork to run also the tests automatically.
We also recommend to run them locally before pushing to GitHub with:
$ make test
Documentation¶
Documentation about ENASearch is available online at http://bebatut.fr/enasearch
To update it:
- Make the changes in src/docs
- Generate the doc with
$ make doc
- Check it by opening the docs/index.html file in a web browser
- Propose the changes via a Pull Request
Update the data¶
The fields and their description, the formats, etc were extracted manually and stored in CSV files in enasearch_data. They were then serialized to be quickly imported in enasearch script.
To update them:
Extract the information from tables on ENA website
For example for the display_options has been extracted from “Display options” on “REST URLs for data retrieval” page
Format the table into a CSV file
Update the corresponding file in enasearch_data directory
Serialize the data with
$ make data
Commit the changes