Open alexcouper opened 8 years ago
why not use the exitcode to determine the error?
$ flake8 ; echo $?
./test.py:6:2: E225 missing whitespace around operator
./test.py:14:5: F841 local variable 'x' is assigned to but never used
./test.py:14:8: E225 missing whitespace around operator
1
$ flake8 ; echo $?
0
The redirection of stdout and stderr in the flake8 checker is not working as expected.
Without the redirection, I see that flake8 is correctly detecting errors in files. With the redirection it appears that nothing is actually written to the
StringIO
objects.Requires some investigation.