First off, thank you for considering contributing to Tgram! We appreciate your efforts and time in making this library better. Here are some guidelines to help you contribute effectively.
If you find a bug or have a feature request, please open an issue. Ensure the following:
- Search existing issues to avoid duplicates.
- Provide a clear and descriptive title.
- Include as much relevant information as possible, such as:
- Steps to reproduce the issue.
- Expected vs actual behavior.
- Error messages, logs, or screenshots (if applicable).
Have an idea to enhance Tgram? We'd love to hear it! Create an issue with the enhancement
label and describe:
- The problem the feature solves.
- How it fits into the scope of Tgram.
- Possible implementation ideas (if any).
Want to add new features, fix bugs, or improve the documentation? Follow these steps:
-
Fork the repository
Click the "Fork" button on the top right of the repo to create your own copy. -
Clone your fork
git clone https://github.com/<your-username>/tgram.git cd tgram
-
Create a new branch
Use a meaningful branch name that reflects your changes:git checkout -b fix-bug-123
-
Install dependencies
Ensure your development environment is set up by installing dependencies:pip install -r requirements.txt
-
Write code and tests
- Follow the existing coding style.
- Add or update tests for your changes.
- Run tests locally before committing:
pytest
-
Lint your code Use Ruff to ensure your code follows style guidelines:
ruff check .
Fix any issues Ruff identifies automatically with:
ruff check . --fix
-
Commit your changes
Use clear and descriptive commit messages:git commit -m "Fix issue #123: Description of fix"
-
Push your branch
git push origin fix-bug-123
-
Open a pull request
Go to the repository on GitHub and click the "New Pull Request" button. Provide the following details:- A clear and concise title.
- A detailed description of your changes and why they are necessary.
- Follow the PEP 8 coding standards.
- Use type hints wherever applicable.
- Write docstrings for functions and classes.
- Ensure your code passes Ruff checks.
Pull requests are reviewed to maintain the quality and consistency of the library. During the review process:
- Be patient, as maintainers may need time to review.
- Address feedback promptly and update your pull request as needed.
- Ensure your branch is up-to-date with the
main
branch.
- Be respectful and considerate of others.
- Avoid spamming or submitting low-quality contributions.
- Provide constructive feedback during discussions.
Thank you for contributing to Tgram! Together, we can build something amazing. 🙌