Contribution Guide#
All contributions to PyEDB are welcome. This guide helps you get started.
Development Environment Setup#
Fork the PyEDB repository on GitHub.
Clone your fork locally:
git clone https://github.com/your-username/pyedb.git cd pyedb
Install the package in development mode with all dependencies:
pip install -e ".[dev]"
Install pre-commit hooks to ensure code quality:
pre-commit install
Running Tests#
To ensure your changes don’t break existing functionality, run the test suite:
pytest tests/ -v
Building Documentation#
To build and preview the documentation locally:
cd doc
make html
# Open _build/html/index.html in your browser
Submission Process#
Create a branch for your feature or bug fix: git checkout -b feature/your-feature-name
Make your changes and add tests.
Ensure all tests pass and pre-commit checks are satisfied.
Commit your changes: git commit -m “Add feature: your feature description”
Push to your fork: git push origin feature/your-feature-name
Open a Pull Request against the main PyEDB repository.
Code Style#
Follow PEP 8 guidelines.
Use Google-style docstrings for all public functions and classes.
Include type hints for all function parameters and return values.
Documentation Contributions#
When adding new features, please also update the relevant documentation:
Add examples to the appropriate section in user_guide/common_tasks.rst.
Create a new Jupyter notebook in doc/notebooks/ if the feature warrants a comprehensive example.
Ensure all new public API elements have proper docstrings.