python -m flake8 <filename> returns exitcode 0 if file does not exist
- Version flake8==3.7.9
- Running on Ubuntu.
- Installed with
pip install flake8
python -m flake8 afile_that_does_not_exist.py, exit code 0 is returned.
I think this is not really desirable.
Let's look at following situation. I tried to flake a file (with a relative pathname) while being in the wrong directory. obviously the file cannot be found and analyzed. Instead of reporting that the file cannot be found. I just get no output and exit code 0 and assume therefore the file is clean. Afterwards I commit my repository and find out, that CI reports flake errors.
Suggestion would be to display, that files could not be found and return exit code !=0 or if this is really the desired behavior to add a switch, which allows to fail explicitly