Files
CTFd/Makefile
Kevin Chung d04ef66365 Closes #1307
2020-05-30 22:40:18 -04:00

28 lines
709 B
Makefile

lint:
flake8 --ignore=E402,E501,E712,W503,E203 --exclude=CTFd/uploads CTFd/ migrations/ tests/
black --check --exclude=CTFd/uploads --exclude=node_modules .
prettier --check 'CTFd/themes/**/assets/**/*'
format:
isort --skip=CTFd/uploads -rc CTFd/ tests/
black --exclude=CTFd/uploads --exclude=node_modules .
prettier --write 'CTFd/themes/**/assets/**/*'
test:
pytest -rf --cov=CTFd --cov-context=test --ignore=node_modules/ \
-W ignore::sqlalchemy.exc.SADeprecationWarning \
-W ignore::sqlalchemy.exc.SAWarning \
-n auto
bandit -r CTFd -x CTFd/uploads --skip B105,B322
pipdeptree
yarn verify
coverage:
coverage html --show-contexts
serve:
python serve.py
shell:
python manage.py shell