Skip to content

Latest commit

 

History

History
72 lines (43 loc) · 3.67 KB

CONTRIBUTING.rst

File metadata and controls

72 lines (43 loc) · 3.67 KB

Contributing to the Open Raadsinformatie API

Want to get involved with the Open Raadsinformatie API? Here's how you can help!

Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.

Using the issue tracker

The issue tracker is the preferred channel for submitting bug reports, feature requests and pull requests.

Bug reports

Spot an error in the way data is formatted? Getting unexpected error when making a call to the API? Than please submit a bug report. Good bug reports are extremely helpful in order to improve the code, and the project in general.

Some guidelines when submitting a bug report:

  • Check if the issue hasn't already been reported.
  • Be as detailed as possible, people reading the report shouldn't have to chase you up for more information. Describe the problem thoroughly, so others can try to reproduce it.
  • Verify that the problem only occurs within the Open Raadsinformatie API, and not in the original source. You can do this by requesting the original document(s) via the REST API (/(source_id)/(object_id)/source). Problems in the source data will not be fixed by us and should be reported to the data publishers.

Feature requests

Feature requests are welcome, but take a moment to find out whether your idea fits the scope and goals of the project. It's up to you to make a strong case to convince others of the merits of the feature your are requesting. Please provide as much detail and context as possible.

Pull requests

We really like to receive good pull requests for patches, new features or improvements.

Our advice is to first discuss changes, before you start working on a large pull-request (for instance, when implementing new features or significant refactoring of the code). Otherwise you risk spending time on something that won't be (directly) merged into the project.

Please adhere to the :ref:`dev_coding_conventions` used throughout the project. Make sure that your pull request includes proper tests (and that they pass) and documentation.

To submit a pull request, follow this process:

  1. Fork the project and clone your fork:

    $ git clone https://github.com/<your-username>/open-raadsinformatie.git
    $ cd open-raadsinformatie
    $ git remote add upstream https://github.com/openstate/open-raadsinformatie.git
    
  2. Always make sure you are working with a recent version. To get the latest changes from upstream:

    $ git checkout master
    $ git pull upstream master
    
  3. Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:

    $ git checkout -b <topic-branch-name>
    
  4. Push your topic branch up to your fork:

    $ git push origin <topic-branch-name>
    
  5. When you've finished writing your awesome additions to the Open Raadsinformatie API, please make sure you merge with the upstream dev branch before you submit your pull request, in order to prevent us from running into massive merge conflict resolutions:

    $ git pull upstream dev
    
  6. Open a Pull Request with a clear title and description against the dev branch.

Code formatting

  • We currently target Python 2.7 as a minimum version
  • Follow the style you see used in the primary repository! Consistency with the rest of the project always trumps other considerations.
  • The PEP 8 styleguide is used for all Python code.