Contributing
Contributions to tiered_debug are welcome! This guide outlines how to contribute to the project.
Getting Started
Fork the repository (if hosted on a platform like GitHub).
Clone your fork:
git clone https://github.com/your-username/tiered_debug.git cd tiered_debug
Install dependencies:
pip install pytest
Run tests to ensure the project is working:
pytest test_base.py -v
Submitting Changes
Create a branch for your changes:
git checkout -b my-feature
Make changes and commit with clear messages:
git commit -m "Add feature X to TieredDebug"
Update tests in
test_base.pyto cover your changes.Run tests to verify:
pytest
Push to your fork and create a pull request:
git push origin my-feature
Code Style
Follow PEP 8 for Python code style.
Use Sphinx autodoc docstrings (reStructuredText) for documentation.
Ensure all public methods and classes are documented.
Documentation
Update documentation in the docs folder when adding features:
Edit RST files (
usage.rst,api.rst, etc.).Add entries to
CHANGELOG.rstunder the appropriate version.
Run Sphinx to build docs locally:
cd docs
pip install sphinx
make html
Open docs/_build/html/index.html to view the generated documentation.
Issues and Feedback
Report bugs or suggest features by opening an issue on the project’s repository (if applicable) or contacting the maintainer directly.