mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
* 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.
15 lines
328 B
Makefile
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
|