Contributing¶
Thank you for considering contributing to Unbrowsed! This document provides guidelines and instructions for contributing to the project.
Setting Up Development Environment¶
Fork the repository on GitHub
Clone your fork locally:
git clone https://github.com/your-username/unbrowsed.git cd unbrowsed
Create a virtual environment and install development dependencies:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -e ".[test,docs]"
Running Tests¶
Unbrowsed uses pytest for testing. To run the tests:
pytest
To run tests with coverage:
pytest --cov=unbrowsed
Code Style¶
Unbrowsed follows PEP 8 style guidelines. Please ensure your code adheres to these standards.
Documentation¶
When adding new features, please update the documentation accordingly:
Add docstrings to all public modules, functions, classes, and methods
Update the relevant documentation files in the
docs/sourcedirectoryBuild the documentation to verify your changes:
cd docs make html
Pull Request Process¶
Create a new branch for your feature or bugfix
Make your changes and commit them with clear, descriptive commit messages
Push your branch to your fork on GitHub
Submit a pull request to the main repository
Ensure all tests pass and the documentation builds correctly
Reporting Issues¶
If you find a bug or have a feature request, please open an issue on the GitHub repository. Please include:
A clear, descriptive title
A detailed description of the issue or feature request
Steps to reproduce the issue (for bugs)
Expected behavior and actual behavior (for bugs)
Any relevant code snippets or error messages