Contributing
Contributing to OpenSquirrel largely follows the general procedure of contributing to a GitHub project. Some details of that procedure and actions specific to OpenSquirrel are described below.
Requirements
- git version control system (VCS) for software programming:
Install Git and check if it is installed properly by running
git version. - uv Python package manager: easy install through
pip install uvor follow these instructions.
Forking the project and creating a feature branch
Contributing to OpenSquirrel as an external developer is done via a new fork.
- Navigate to the OpenSquirrel GitHub project and create a fork.
- Clone the repository locally using
git clone. - Create a new feature branch:
Installing the required dependencies
It is recommended to work in a virtual environment (which can be created using uv)
Make sure to activate the virtual environment if not done so yet
Next install the required dependencies
Adding, committing, and pushing changes
Any code changes can be added as follows
Usegit status to inspect which files contain changes and which of them have already been staged, i.e., added.
To save the changes in the staged files, you create so-called commit, accordingly
where the commit message is a short description of the changes made.To make sure that the changes not only exist locally, the commit needs to be pushed to the remote repository.
Creating a Pull Request
When you are done with your feature implementation and want to add it to OpenSquirrel, you need to create a Pull Request (PR).
Before finalizing the PR, however, it is advised to run linting, type, and unit tests, using tox:
Make sure to commit and push any changes resulting from these checks.