Our community thrives on the diverse ideas and contributions of its members. Whether you're fixing a bug, adding a new feature, improving the documentation, or adding examples, your help is welcome. Here's how you can contribute:
Did you find a bug or have a feature request? Please first check the issue tracker to see if it has already been reported. If not, feel free to open a new issue. Include as much detail as possible:
- A descriptive title
- Clear description of the issue
- Steps to reproduce the problem
- Version of the MemoryScope you are using
- Any relevant code snippets or error messages
To work on an issue or a new feature, start by forking the MemoryScope repository and then cloning your fork locally.
git clone https://github.com/your-username/memoryscope.git
cd memoryscope
Create a new branch for your work. This helps keep proposed changes organized and separate from the main
branch.
git checkout -b your-feature-branch-name
With your new branch checked out, you can now make your changes to the code. Remember to keep your changes as focused as possible. If you're addressing multiple issues or features, it's better to create separate branches and pull requests for each.
We provide a developer version with additional pre-commit
hooks to perform format checks compared to the official version:
# Install the developer version
pip install -e .
# Install pre-commit hooks
pre-commit install
Once you've made your changes, it's time to commit them. Write clear and concise commit messages that explain your changes.
git add -A
git commit -m "A brief description of the changes"
You might get some error messages raised by pre-commit
. Please resolve them according to the error code and commit again.
When you're ready for feedback, submit a pull request to the MemoryScope main
branch. In your pull request description, explain the changes you've made and any other relevant context.
We will review your pull request. This process might involve some discussion, additional changes on your part, or both.
Wait for us to review your pull request. We may suggest some changes or improvements. Keep an eye on your GitHub notifications and be responsive to any feedback.