The HiPEAC api/website uses Django and the Django REST Framework.
The application uses Pipenv to manage Python packages. While in development, you will need to install
all dependencies (includes packages like debug_toolbar
):
$ pipenv install --dev
$ pipenv shell
Update dependencies (and manually update requirements.txt
):
$ pipenv update --dev && pipenv lock -r
$ python manage.py migrate
$ python manage.py runserver
$ pytest --cov=hipeac --cov-report=term
$ celery worker -B -A hipeac
Tab size is 4 spaces. Max line length is 120. You should run flake8
and black
before committing any change.
$ flake8 hipeac
$ black hipeac