mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-01-31 20:04:28 +01:00
* 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
13 lines
216 B
Makefile
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
|