I am trying to integrate my code check with pyflakes into the build process. I defined the following goal in my Makefile :
pyflakes: find $(APPLICATION_DIRECTORY) -iname "*.py" -exec pyflakes "{}" \;
The problem is that find returns 0 every time, even if there are problems with the code ( pyflakes returns not 0 ), and make succeeds. Ideally, I want to run a check on each source file and stop make if at least one of -exec fails. Is there any way to achieve this?
source share