-rw-r--r-- makefile
1 help: 2 @echo 'make: Display this message' 3 @echo 'make clean: Remove the compiled files (*.pyc, *.pyo)' 4 @echo 'make pylint: Test using pylint' 5 @echo 'make flake8: Test using flake8' 6 7 clean: 8 find qtools -regex .\*\.py[co]\$$ -delete 9 find qtools -depth -name __pycache__ -type d -exec rm -r -- {} \; 10 11 TEST_PATHS = \ 12 qtools 13 14 pylint: 15 @echo "Running pylint..." 16 pylint --rcfile=setup.cfg $(TEST_PATHS) 17 18 flake8: 19 @echo "Running flake8..." 20 flake8 $(TEST_PATHS) 21 22 .PHONY: default help clean flake8 23