First off, thank you for considering contributing to Python Publisher Subscriber! It's people like you that make Python Publisher Subscriber such a great tool.
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code.
Before creating bug reports, please check existing issues as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible:
- Use a clear and descriptive title for the issue to identify the problem.
- Describe the exact steps which reproduce the problem in as many details as possible.
- Provide specific examples to demonstrate the steps.
- Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior.
- Explain which behavior you expected to see instead and why.
- Include screenshots and animated GIFs if possible.
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, please include:
- Use a clear and descriptive title for the issue to identify the suggestion.
- Provide a step-by-step description of the suggested enhancement in as many details as possible.
- Provide specific examples to demonstrate the steps.
- Describe the current behavior and explain which behavior you expected to see instead and why.
- Explain why this enhancement would be useful to most Python Publisher Subscriber users.
Unsure where to begin contributing? You can start by looking through these beginner and help-wanted issues:
- Beginner issues - issues which should only require a few lines of code.
- Help wanted issues - issues which should be a bit more involved than
beginnerissues.
- Fork the repo and create your branch from
main. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code follows the existing style.
- Issue that pull request!
- Setup your environment:
git clone [https://github.com/venantvr-pubsub/Python.Publisher.Subscriber.git](https://github.com/venantvr/Python.Publisher.Subscriber.git) cd Python.Publisher.Subscriber python -m venv venv source venv/bin/activate pip install -r requirements-dev.txt pip install -e . - Create a feature branch:
git checkout -b feature/your-feature-name - Make your changes:
- Write your code
- Add tests for your changes
- Update documentation if needed
- Run tests and checks:
make test # Run tests - Commit your changes:
git add . git commit -m "Add feature: your feature description" - Push and create PR:
git push origin feature/your-feature-name
- Follow PEP 8.
- Maximum line length is 100 characters.
- Use type hints where possible.
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- Use Markdown for documentation.
- Reference functions, classes, and modules in backticks.
- Include code examples where appropriate.
- Write tests for all new functionality.
- Write comprehensive tests for new features.
- Run the full test suite before submitting a PR.
- Tests should be deterministic and not rely on external services.
bug- Something isn't workingenhancement- New feature or requestdocumentation- Improvements or additions to documentationgood first issue- Good for newcomershelp wanted- Extra attention is neededquestion- Further information is requested
Contributors will be recognized in our README and release notes. Thank you for your contributions!