mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 11:40:07 +00:00
3.5 KiB
3.5 KiB
Contributing to WFGY
Thank you for your interest in contributing to WFGY! To make contributions smooth and effective, please follow this guide.
1. Reporting Issues
- Before opening a new issue, search existing issues to see if the topic has already been raised.
- To create a new issue, choose the appropriate issue template (bug report or feature request) and provide:
- A clear description of the problem or feature.
- Steps to reproduce (for bugs), including code snippets or minimal reproduction example.
- Environment details: Python version, OS, WFGY SDK version, etc.
- If you discover a security vulnerability, do not disclose details publicly. Instead, follow the procedure in
SECURITY.md.
2. Fork & Clone
git clone https://github.com/onestardao/WFGY.git
cd WFGY
# Use Python >= 3.10 in a virtual environment
python -m venv venv
# Linux/macOS:
source venv/bin/activate
# Windows PowerShell:
# .\venv\Scripts\Activate.ps1
pip install -r requirements.txt
- Create a new branch for your work:
git checkout -b feature/short-description-of-feature
3. Development & Testing
-
Code Style:
- Use
black:black . - Use
isort:isort . - Use
pre-commitif set up:pre-commit run --all-files
- Use
-
Running Tests:
- Run
pytest tests/(or the specific command used by this project). Ensure all tests pass locally. - If you add new functionality or fix a bug, include appropriate tests.
- Run
-
Dependencies:
- If you introduce new dependencies, add them to
requirements.txtor the appropriate config file.
- If you introduce new dependencies, add them to
4. Submitting a Pull Request
-
Title Format:
- Example:
Add: Brief description of featureorFix: Brief description of bug fix.
- Example:
-
Description: In the PR description, include:
- Motivation and summary of changes.
- Testing steps and results.
- Related issue number, using “Closes #” if applicable.
-
Target Branch:
- Set target branch to
main(or another branch if the project follows a different workflow).
- Set target branch to
-
Review Process:
- Maintainers will review your PR, may request changes; please be patient and address feedback.
-
Clean Commits:
- Squash or rebase commits if needed to keep history clear, according to project preference.
5. Documentation
- If your changes require updates to documentation (README, examples, API reference), please include those updates in the same PR.
- If applicable, update version/changelog files as per release workflow.
6. Release Process (for Maintainers)
- Typically maintainers handle tagging and releasing new versions.
- If you wish to propose a release candidate, open an issue with title
[Release Candidate]and summary of changes. - Follow semantic versioning (if used) and update changelog accordingly.
7. Communication Channels
- Telegram: Telegram user @PSBigBig (for quick chats).
- GitHub Discussions: https://github.com/onestardao/WFGY/discussions (if enabled).
- Email: hello@onestardao.com (for longer-form discussion or private matters).
- Please be respectful and follow the Code of Conduct when interacting.
8. Large Changes
- For major or breaking changes (e.g., architecture refactor, breaking API), please open an issue first to discuss design and implications.
- Label your draft PR appropriately (e.g., “WIP”, “RFC”).
9. Acknowledgements
- Contributions of any kind—code, documentation, examples, bug reports, suggestions—are welcome!
- Thank you for helping improve WFGY.