Files
CTFd/Makefile
Kevin Chung 4ec45dc4bc Fix imports/exports and update Flask-SQLAlchemy to reduce warnings (#974)
* Fix imports/exports to accept JSON 
    * MariaDB does not properly understand JSON so it must accept strings instead of dicts
    * MariaDB outputs strings instead of JSON for its JSON type so the export serializer will attempt to cast output JSON strings to JSON objects
* Update Makefile to not lint any uploads
* Update Flask-SQLAlchemy to 2.4.0 to remove a large amount of warnings
2019-04-30 20:36:25 -04:00

13 lines
216 B
Makefile

lint:
flake8 --ignore=E402,E501,E712 --exclude=CTFd/uploads CTFd/ tests/
test:
pytest --cov=CTFd --disable-warnings -n auto
bandit -r CTFd -x CTFd/uploads
serve:
python serve.py
shell:
python manage.py shell