Closed cottsay closed 5 years ago
Shoot, this works with flake8 3.4.1
on Fedora, but it appears broken in Travis. I'll find another solution.
This solution seems to work on Ubuntu and Fedora. I have no clue why the constructor method didn't work - the docs are the same for 3.4.1
and 3.5.0
.
Note that this problem is also reproducible on Ubuntu if you generate docs before running tests.
Thanks for the patch.
For whatever reason, the
conf.py
generated in thedoc/_build
directory on Fedora doesn't have a trailing newline, so it fails the flake8 tests. Of course this isn't a problem if you don't build docs before running the tests. There really isn't any reason to run flake8 on anything generated in the docs anyway, so we can just skip those files.