We welcome contributions to the T-reX project. This document outlines the process for contributing to the project's development. Your input is valuable, and we appreciate your support in making this tool more effective and accessible.
At the very least, you can contribute by reporting bugs or suggesting improvements in the issues section of the repository. If you're interested in contributing code, please read the following guidelines. It can be intimidating at first, it was for me, but it's not as hard as it seems. If you have any questions, please feel free to reach out to me at T-reX@scmcd.ch
- Code Contributions: Enhancements, bug fixes, or new features.
- Documentation: Improvements to existing documentation or new documentation.
- Testing: Reporting bugs, issues, or inconsistencies in the application.
- Feature Suggestions: Ideas for new features or improvements to existing ones.
-
Fork the Repository: Start by forking the T-reX repository on GitHub.
-
Clone Your Fork: Clone your fork to your local machine using the command:
git clone https://github.com/[your-username]/T-reX.git
-
Set Up a Development Environment: We recommend using a virtual environment. For example:
python -m venv T-reX-env source T-reX-env/bin/activate git clone http://github.com/Stew-McD/T-reX.git cd T-reX pip install -e .
-
Create a New Branch: Work on a new branch for each separate piece of work.
git checkout -b [your-branch-name]
-
Make Your Changes: Implement your changes, adhering to the existing code style.
-
Test Your Changes: Ensure that your changes do not break existing functionality.
-
Document Your Changes: Update or add documentation as necessary.
-
Commit Your Changes: Write clear and meaningful commit messages.
git commit -am "Add a concise commit message"
-
Push to Your Fork: Push your changes to your fork on GitHub.
git merge upstream git push origin [your-branch-name]
-
Create a Pull Request: Submit a pull request to the main repository. Please provide a clear description of the problem you're solving and the proposed solution.
- Ensure that your code adheres to the existing style in the project.
- Write clean, maintainable, and testable code.
- Follow best practices for Python development.
- Update or create new tests as necessary.
- Document your code and update the README or other documentation as needed.
If you find a bug or have a suggestion for improvement:
- Check if the issue has already been reported.
- If not, create a new issue providing a detailed description and steps to reproduce it.