Contribute
In the remainder of this manual we assume you:
- have your own GitHub account
- work with GitHub Desktop or Git
- can work with GeoPandas and Pytest
Code-contributions can enter the main branch if:
- they are provided with docstring documentation
- are passing Flakes tests an Black styling
- are covered Pytest
Installation for development
To setup your development environment follow the instructions at Installation for development
Small contributions
For small contributions we propose the following workflow:
- Fork and clone and install a copy
- Add and test new code
- Commit your copy and request a merge
The remainder of this guide explains how to do it.
Fork repo
Fork the respository to your own GitHub account:
- Click
fork
in the upper-right of the rository. - Select your own github account
The repository is now available on your own github account.
Clone repo
Now clone your fork to your local drive. We do this with GitHub Desktop. After installation and authentication you can get a local copy by:
Add
andClone repository...
in the top-left corner- Find your fork and clone it to an empty directory on your local drive
- Press clone`
Verify if the repository is on your local drive.
Install copy
Install the module in the activated validatietool
environment in develop-mode:
pip install -e .
Now you're good to go!
Improve code
Make any code-contribution you deem necessary. Please don't forget to document your code with docstrings so they are documented.
Test code
In the test-folder you add a test. A test-function starts with test_
. In within the test-function you confirm if your new functionity is correct with assert = True
. In this case
Within your activated environment you can test your function with pytest:
pytest --cov-report term-missing --cov=src tests/
As your function is correct, the test should not fail. You can confirm all lines of your new code are tested:
Contribute
Now you can contribute by: 1. Committing your code in your own repository 2. Request a merge of your branch into the main branch of fewspy
Large contributions
For significant contributions we are happy to consider adding you to the contributors of our repository!