mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 14:16:08 -06:00
34 lines
926 B
Makefile
34 lines
926 B
Makefile
.PHONY: all test clean_coverage doc doc_coverage clean pep8 pyflakes check
|
|
|
|
all:
|
|
@echo 'test run the unit tests'
|
|
@echo 'flake8 check pep8 compliance'
|
|
@echo 'check make sure you are ready to commit'
|
|
@echo 'clean cleanup the source tree'
|
|
|
|
doc_coverage:
|
|
@echo 'Running docstring coverage...'
|
|
@docstring-coverage burpui
|
|
|
|
test: clean_coverage
|
|
@echo 'Running all tests...'
|
|
@nosetests --with-coverage --cover-package=burpui test/test_burpui.py
|
|
|
|
doc:
|
|
@echo 'Generating documentation...'
|
|
@cd docs && make html
|
|
|
|
clean:
|
|
@find . -type d -name "__pycache__" -exec rm -rf "{}" \; || true
|
|
@find . -type f -name "*.pyc" -delete || true
|
|
@rm -rf build dist burp_ui.egg-info docs/_build || true
|
|
@cd docs && make clean
|
|
|
|
clean_coverage:
|
|
@rm -f .coverage
|
|
|
|
flake8:
|
|
@echo 'Checking pep8 compliance and errors...'
|
|
@flake8 --ignore=E501,E722,W605,W504 burpui
|
|
|
|
check: pep8 pyflakes doc_coverage test
|