Files
CTFd/Makefile
Kevin Chung 6833378c36 Format all the things (#991)
* Format Javascript and CSS files with `prettier`: `prettier --write 'CTFd/themes/**/*'`
* Format Python with `black`: `black CTFd` & `black tests`
* Travis now uses xenial instead of trusty.
2019-05-11 21:09:37 -04:00

15 lines
328 B
Makefile

lint:
flake8 --ignore=E402,E501,E712,W503,E203 --exclude=CTFd/uploads CTFd/ tests/
black --check --exclude=CTFd/uploads CTFd/**/*.py tests/**/*.py
prettier --check 'CTFd/themes/**/*'
test:
pytest --cov=CTFd --disable-warnings -n auto
bandit -r CTFd -x CTFd/uploads
serve:
python serve.py
shell:
python manage.py shell