We appreciate your interest in contributing to python_cafe! This document provides guidelines for contributing. By participating in this project, you agree to abide by its terms.
-
Fork the Repository: Click the 'Fork' button on the GitHub repository page to create your own fork of the repository.
-
Clone Your Fork: Clone your fork locally:
git clone https://github.com/YOUR_USERNAME/PROJECT_NAME.git
-
Set Up a Virtual Environment:
python3 -m venv env source env/bin/activate # On Windows, use: env\Scripts\activate
-
Install Development Dependencies:
pip install -r requirements-dev.txt
-
Create a New Branch: For each contribution, create a new branch:
git checkout -b YOUR_BRANCH_NAME
Please adhere to the PEP 8 coding convention which is the standard for Python code. We also use Black to format our code, so please make sure your contributions are formatted with it.
-
Commit Your Changes: Commit any changes in your branch.
git add . git commit -m "YOUR COMMIT MESSAGE"
-
Push to Your Fork: Push your changes to your fork on GitHub.
git push origin YOUR_BRANCH_NAME
-
Open a Pull Request: Go to the original sitory on GitHub and click on 'New Pull Request'. Choose your branch from the dropdown and click 'Create Pull Request'.
If you find any bugs or have suggestions, please open an issue in the repository. Make sure to check existing issues first to avoid duplicates.
Before submitting your changes, make sure all tests pass using "pytest". Here's a guide from Real Python:
pytest- Please ensure your PRs are small and focused. Large PRs with multiple unrelated changes are difficult to review and may not be merged.
- If adding a new feature, please ensure to include relevant documentation and tests.
- Make your commit message descriptive that explains the reasoning behind the change.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Good looking out on your contribution!