when $files is empty.
A sphinx-gallery updated introduced flake8 violations which were not
ignored because $files was empty so all the files were checked instead
of only the examples.
which fixes the issue seen in
https://github.com/scikit-learn/scikit-learn/pull/7027.
Enhancements:
* the script works on PRs targetting a fork rather than the reference
repo
* improved logic about when to unshallow the repo
* fetching the upstream master branch into a reference rather than a
branch (less intrusive for scripts than may run afterwards e.g. the
ones in the after_success step)
* Better logging messages
* [MAINT] Upgrade to Sphinx-Gallery 0.1.4
* Don't run flake8 on Sphinx-Gallery
* Sphinx-Gallery loads the stylesheet not the layout
* Delete old css file of the gallery
* Incorporate scikit-learn css to wrap download buttons
* flake8 message that sphinx-gallery is not checked
* Add flake8 linting on the diff
with respect to common ancestor of branch and scikit-learn/scikit-learn
remote.
Add a flake8-diff target in the Makefile and mention it in the doc.
* Only install flake8 when needed