Commit 5b45f1633695d4cb7a5c24b8a240b5006f605a03 Parent: 4c04fa3656b506ea4c546d2650320afafff1fa0a Author: mcol <mcol@posteo.net> Date: 2020-02-29 10:14:36 +0000 Committer: mcol <mcol@posteo.net> Committed: 2020-02-29 10:14:36 +0000 add pylint for makefile
makefile Modified
@@ -1,13 +1,22 @@ help: @echo 'make: Display this message' @echo 'make clean: Remove the compiled files (*.pyc, *.pyo)' + @echo 'make pylint: Test using pylint' @echo 'make flake8: Test using flake8' clean: find qtools -regex .\*\.py[co]\$$ -delete find qtools -depth -name __pycache__ -type d -exec rm -r -- {} \; +TEST_PATHS = \ + qtools + +pylint: + @echo "Running pylint..." + pylint --rcfile=setup.cfg $(TEST_PATHS) + flake8: - flake8 qtools + @echo "Running flake8..." + flake8 $(TEST_PATHS) .PHONY: default help clean flake8