🤝 Contributing to peepDB
Contributions to peepDB are welcome! Whether you’re fixing bugs, improving documentation, or proposing new features, your efforts are appreciated. Here’s how you can contribute:
Steps to Contribute
- Fork the repository on GitHub.
- Clone your forked repository to your local machine.
- Create a new branch for your feature or bug fix:
git checkout -b feature/AmazingFeature
- Make your changes and commit them with a clear commit message:
git commit -m 'Add some AmazingFeature'
- Push your changes to your fork on GitHub:
git push origin feature/AmazingFeature
- Open a Pull Request from your fork to the main peepDB repository.
Setting Up Development Environment
- Clone the repository:
git clone https://github.com/evangelosmeklis/peepdb.git cd peepdb
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install the package in editable mode with development dependencies:
pip install -e .[dev]
Code Style
- Follow PEP 8 guidelines for Python code.
- Use meaningful variable and function names.
- Add comments to explain complex logic.
- You can use tools like
flake8
orblack
to ensure your code adheres to the style guide.
Testing
- Add unit tests for new features or bug fixes.
- Ensure all existing tests pass before submitting a pull request.
- Run the test suite using pytest:
pytest
Documentation
- Update the README.md file if you’re adding or changing functionality.
- Add or update docstrings for new or modified functions and classes.
Reporting Issues
If you find a bug or have a suggestion for improvement:
- Check the GitHub Issues to see if it has already been reported.
- If not, open a new issue, providing as much detail as possible.
Thank you for contributing to peepDB!