-
Clone the repo
git clone https://github.com/sklarsa/django-sendgrid-v5.git
-
Create a virtual environment and install the dev-requirements.txt
cd django-sendgrid-v5 virtualenv venv source venv/bin/activate pip install -r dev-requirements.txt pip install -e .
-
If you want to run tests that post to the sendgrid API directly, you need to set an environment variable,
SENDGRID_API_KEY
. Otherwise, related tests will fail. -
Run the unit tests
tox
-
Run code linting/formatting/type checking (from the repository's root directory), and correct any issues:
flake8 sendgrid_backend/ isort ./ black ./ mypy sendgrid_backend/