mirror of https://github.com/JohnHammond/CTFd.git
20 lines
487 B
Makefile
20 lines
487 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/**/assets/**/*'
|
|
|
|
format:
|
|
black --exclude=CTFd/uploads CTFd/**/*.py tests/**/*.py
|
|
prettier --write 'CTFd/themes/**/assets/**/*'
|
|
|
|
test:
|
|
pytest --cov=CTFd --ignore=node_modules/ --disable-warnings -n auto
|
|
bandit -r CTFd -x CTFd/uploads
|
|
yarn verify
|
|
|
|
serve:
|
|
python serve.py
|
|
|
|
shell:
|
|
python manage.py shell
|