This guide provides instructions for setting up your environment, following best practices, and contributing to the HintEval project.
-
Fork the Repository
Fork the HintEval repository on GitHub. -
Clone Your Fork
Clone your forked repository and navigate to the project directory:git clone https://github.com/YOUR_USERNAME/HintEval.git cd HintEval
-
Create a Virtual Environment
Set up a virtual environment using Conda:conda create -n hinteval_env python=3.11.9 --no-default-packages conda activate hinteval_env
-
Install Dependencies
Install PyTorch 2.4.0 following platform-specific instructions from the PyTorch installation page. If you have a GPU, install the CUDA version for optimal performance.After installing PyTorch, install HintEval in editable mode:
pip install -e .
-
Create a New Branch
Create a new branch for your feature:git checkout -b feature/your-feature-name
-
Make Changes and Commit
Stage and commit your changes:git add . git commit -m "Your descriptive commit message"
-
Push Changes to Your Fork
Push your branch to your fork:git push origin feature/your-feature-name
-
Open a Pull Request
In the original HintEval repository, open a new pull request for your feature branch.
- Follow PEP 8 guidelines.
- Include type hints wherever applicable.
- Document functions, classes, and modules with clear docstrings.
- Ensure all tests pass before submitting a pull request.
- Update documentation for new features or changes.
- Use the NumPy style for docstrings.
- Ensure code meets coding standards.
- Include tests for new functionality.
- Update relevant documentation.
- Provide a concise description of the changes in the pull request.
Thank you for contributing to HintEval!