Skip to content

xdossantos/buza-website

 
 

Repository files navigation

Buza

This is the code for Buza mobi site

Getting started

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

Running checks and tests

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.

Git pre-commit hook

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

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.9%
  • HTML 22.5%
  • CSS 7.6%
  • JavaScript 1.0%