You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PurpleDome/Makefile

41 lines
829 B
Makefile

# Makefile for standard actions
#
#
.PHONY: test init deinit shipit pylint
# This is for CI on Github
check: tox.ini
tox -e py
# Manual tests
test: tox.ini
tox;
coverage html;
coverage report;
pylint --rcfile=pylint.rc *.py app/*.py plugins/base/*.py
shipit: test
cd doc; make zip; cd ..
git log --pretty="format: %aD %an: %s" > shipit_log.txt
python3 tools/shipit.py
# More detailed pylint tests.
pylint:
pylint --rcfile=pylint.rc *.py app/*.py plugins/base/*.py
# Testing if types are used properly
mypy:
mypy --strict-optional app/ plugins/base/
# Fixing mypy file by file
stepbystep:
mypy --strict-optional --disallow-untyped-defs --check-untyped-defs plugins/base/ app/
# Checking dependencies
check_dependencies:
pipdeptree
# Updating dependencies
update_dependencies:
pip-upgrade requirements.txt