We're glad you're interested in contributing to Pygkit! This document outlines the contribution process and guidelines to help make your experience smooth and successful.
- Fork the repository on GitHub.
- Clone your fork to your local machine:
git clone https://github.com/yourusername/pygkit.git
- Add the upstream repository to your remotes:
git remote add upstream https://github.com/owner/pygkit.git
- Create a new branch for your feature, bug fix, or improvement:
git checkout -b my-feature-branch
- Make your changes, additions, or updates to the code.
- Commit your changes with a clear and concise commit message:
git commit -m "Add feature X"
- Push your branch to your fork on GitHub:
git push origin my-feature-branch
- Create a pull request from your fork to the upstream repository.
- Provide a clear description of your changes in the pull request and reference any related issues.
Please note that the main
branch should always be in a stable, releasable state. Ensure your changes don't break the existing code or introduce bugs.
We follow PEP-8 coding style guidelines for Python. Please make sure your contributions adhere to these standards.
For documenting code, we use Google-style docstrings. Ensure your contributions follow this convention for consistency and readability. You can find more information about Google-style docstrings here. Here's a brief example:
def example_function(arg1, arg2):
"""Example function to demonstrate Google-style docstrings.
Args:
arg1 (int): The first argument.
arg2 (str): The second argument.
Returns:
bool: True if successful, False otherwise.
"""
# Function implementation here
Before submitting your pull request, ensure your changes pass all tests and don't introduce new errors. Add new test cases if necessary to cover your changes.
Thank you for your interest in contributing to Pygkit! We look forward to collaborating with you and improving the project together.