ghedt
welcomes and appreciates bug reports, suggestions and contributions from
everyone.
This guide describes how to report bugs, suggest new features and contribute
code to ghedt
.
Bugs are reported on the issue tracker.
Follow these steps when submitting a bug report:
- Make sure the bug has not been already reported. Run a quick search through the issue tracker. If an open issue is related to your problem, consider adding your input to that issue. If you find a closed issue related to your problem, open an new issue and link to the closed issue.
- Use a short and descriptive title when creating a new issue.
- Provide detailed steps to reproduce the problem. Explain, in details, how to reproduce the problem and what should be the expected result. When possible, include a simple code snippet that isolates and reproduces the problem.
After submitting a bug report, if you wish to contribute code to fix the problem, follow the steps outlined in the contribution workflow.
If you are a developer and are interested in contributing to ghedt by modifying the code, the first step will likely be to fork the repository.
- Fork the repository to your own Github profile. You will be able to alter any of the code in your own repository but will only be able to modify the code in my repository via pull requests.
- Clone the forked repository on your personal computer:
git clone https://github.com/YOUR-USERNAME/ghedt
- Configure my repository as a remote fork:
git remote add upstream https://github.com/j-c-cook/ghedt
. With my repository configured as a fork you will be able to keep your main branch up to date with mine.
This section outlines the steps for contributing to ghedt.
- Open a new issue.
- Use a short and descriptive title. When proposing an enhancement, describe in details what the enhancement would entail. If you plan to implement the enhancement yourself, provide a step-by-step plan for the implementation.
- Explain how the enhancement benefits pygfunction.
- Create (checkout) a new branch from the master. The branch name should
follow the naming convention:
issue#_shortDescription
. For example: issue1_loadAggregation. The following is how to checkout, push a branch to your remote repository, and then set the local branch to an upstream branch.
git checkout -b $branchName &&
git push -u origin $branchName &&
git branch --set-upstream-to=origin/$branchName $branchName
To list all the branches, run the following command. Now you should be able to see that you have the new branch you created checked out, and that there is an upstream branch as well.
git branch -a
- Implement unit tests for new features. If necessary, update already implement tests to cover the new features.
- Before submitting a pull request, merge the master to your branch.
- Once the branch is merged, delete the branch and close the issue.
This section describes various features regarding git branches.
Prior to making changes to the code, a branch should be created. The following shows examples for how to create a branch from the command line.
ghedt
follows the PEP8 style guide.
This contributing outline was originally taken from pygfunction.