Skip to content

Latest commit

 

History

History
104 lines (79 loc) · 4.88 KB

CONTRIBUTING.md

File metadata and controls

104 lines (79 loc) · 4.88 KB

Contributing

We welcome and encourage everyone to contribute to the GemGIS Data Repository! Contributions can be questions about existing models, bug reports about existing models, feature requests or requests to add new models to the repository. Here is how to get started.

Issues

Questions

For questions about GemGIS (e.g. its applications, functionality, and usage), please search the existing issues for related questions. If your question has not already been asked, then make a new issue.

For questions related to the modeling package GemPy, we kindly refer to the repository open issues and ask questions in their discussion section

Reporting Bugs

Please report bugs on the issue page using the bug report template and label the issue as a bug. The template asks essential questions for you to answer so that we can to understand, reproduce, and fix the bug. Be verbose! Whenever possible, provide tracebacks and/or error messages, screenshots, and sample code or other files.

Feature Requests

We encourage users to submit ideas for improvements to the GemGIS project and to the GemGIS Data Repository. For this please create an issue on the issue page with the Feature Request template and label. Please make sure to use a descriptive title and to provide ample background information to help us implement that functionality in the future.

Contributing New Code/New Models

Any code contributions are welcome, whether fixing a typo or bug, adding new post-processing/plotting functionality, improve core functionality, or anything that you think should be in the repository like additional example models.

Contributions should address an open issue (either a bug or a feature request). If you have found a new bug or have an idea or a new feature, then please open the issue for discussion and link to that issue in your pull request.

Python code guidelines

We aim to follow particular Python coding guidelines to improve the sustainability and positive impact of this community project:

def func(arg1: int, arg2: float) -> int:
    """A concise one line summary of the function.
    
    Additional information and description of the function, if necessary. This
    can be as long and verbose as you think is necessary for other users and 
    developers to understand your functionality.
    
    Args:
        arg1 (int): Description of the first argument.
        arg2 (float): Description of the second argument. Please use hanging 
            indentation for multi-line argument descriptions.
    
    Returns:
        (int) Description of the return value(s)
    """
    return 42
  • The code should explain the what and how. Add inline comments to explain the why. If an inline comment seems to be needed, consider first making the code more readable. For all comments, follow PEP 8.
  • Test every line of code. Untested code is dead code.

Licensing

All contributed code will be licensed under a LGPL-3 license. If you did not write the code yourself, it is your responsibility to ensure that the existing license is compatible and included in the contributed files. In general we discourage contributing third party code.

Testing

Our test suite uses pytest. You should be familiar with pytest before contributing. Please run all tests locally before creating a pull request. You can do this by running pytest via your terminal in your GemGIS folder:

cd ./path/to/gemgis
pytest

All tests are located in the test folder and its subfolders.
All contributed code must include test code in the pull request.

Pull Requests

All contributions are made via pull requests (PR's) to the main branch. You must complete the checklist in the PR template before we will review the PR and consider merging your contribution.