- Fork the repository to your account
- Clone the repository to your local machine
- Set up the project
make setup
This will create a virtual environment and install all the dependencies for you.
If you do not have make
installed, you can run the following commands:
python3 -m venv venv # Create a virtual environment
source venv/bin/activate # Activate the virtual environment
pip install -r requirements.txt # Install the dependencies
- Create a new branch, preferably with the name of the feature you are working on
git checkout -b <branch-name>
- Make your changes
- Run the linters and tests
make lint
make test
If you do not have make
installed, you can run the following commands:
# first activate your virtual environment if you haven't already
source venv/bin/activate
# now, run the following commands
python -m mypy app --ignore-missing-imports --config-file pyproject.toml
python -m ruff check app --fix # Run the linters
python -m pytest app # Run the tests
- Commit your changes
git commit -m "Your commit message"
- Push your changes to your fork
git push origin <branch-name>
- Create a pull request to the
main
branch of the original repository - Wait for the maintainers to review your changes