This is the code for Buza mobi site
To set up environment:
$ virtualenv ve $ source ve/bin/activate $ pip install -e . $ ./manage.py migrate $ ./manage.py createsuperuser $ ./manage.py runserver
Or, using pipenv
:
$ cp .env.example .env $ pipenv install --dev $ pipenv shell $ django-admin migrate $ django-admin createsuperuser $ django-admin runserver
To run all the static checks and tests, invoke Tox:
$ tox
To run the checks and tests individually, see the "commands" section of tox.ini
.
To run our main quick checks before each commit, add the following to .git/hooks/pre-commit
:
#!/bin/sh -e mypy -i src tests flake8 isort --check-only