Welcome to the md-agent repository! We're thrilled that you're interested in contributing. This guide will help you understand how you can contribute to the project effectively.
To get started with contributing to md-agent, follow these steps:
git clone https://github.com/ur-whitelab/md-agent.git
cd md-agent
conda env create -n mdagent -f environment.yaml
conda activate mdagent
pip install -e .
pip install -r dev-requirements.txt
pre-commit install
- Use meaningful variable and function names.
- Maintain consistency with the existing codebase.
- Write clear and concise comments to explain your code.
- Run pre-commit before committing your changes to ensure code quality and pass the automated checks.
When developing new features for md-agent, please follow these guidelines:
-
If your feature uses a new package, ensure that you add the package to the project's setup and also include it in the ignore list in the
mypy.ini
file to avoid type checking errors. -
If your feature requires the use of API keys or other sensitive information, follow the appropriate steps:
- Add a placeholder or example entry for the required information in the
.env.example
file. - Open an issue to discuss and coordinate the addition of the actual keys or secrets to the project's secure environment.
- Add a placeholder or example entry for the required information in the
-
New features should include the following components:
- Implement the feature functionality in the codebase.
- Write unit test functions to ensure proper functionality.
- If applicable, create a notebook demonstration or example showcasing the usage and benefits of the new feature.
These guidelines help maintain consistency, security, and thoroughness in the development of new features for the project.
- Fork the repository to your own GitHub account.
- Create a new branch:
git checkout -b my-feature-branch
- Make your changes, following the code guidelines mentioned above.
- Test your changes thoroughly. Pytest workflows must pass in order for PR to be approved.
- Commit your changes:
git commit -am 'Add new feature'
- Push your branch to your forked repository:
git push origin my-feature-branch
- Submit a pull request, providing a detailed description of your changes and their purpose.
- Request a review from the project maintainers or assigned reviewers.
- Address any feedback or comments received during the review process.
- Once your changes are approved, they will be merged into the main branch.
If you encounter any bugs or have feature requests, please follow these guidelines when submitting an issue:
- Before creating a new issue, search the existing issues to avoid duplicates.
- Use a clear and descriptive title.
- Provide steps to reproduce the issue (if applicable).
- Include any relevant error messages or logs.
- Explain the expected behavior and the actual behavior you encountered.
In addition, if you have any questions, need help, or want to discuss ideas, please submit an issue.
When participating in code reviews, please follow these guidelines:
- Be respectful and constructive in your feedback.
- Provide specific and actionable feedback.
- Explain the reasoning behind your suggestions.
- Be open to receiving feedback and engage in discussions.
- Be responsive and timely in addressing comments.
By adhering to these guidelines, we can foster a positive and collaborative environment for code reviews and contribute to the project's success.
We value and appreciate all contributions to md-agent. Your efforts are highly valued and have a positive impact on the project's development.