Commit Graph

12 Commits

Author SHA1 Message Date
Loïc Estève 0eb33adb78 TRAVIS fix flake8_diff.sh check_files (#8208)
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.
2017-01-16 14:02:58 +01:00
Joel Nothman 83c92a1ba9 CI limit diff to commit range in flake8_diff.sh (#8097) 2016-12-21 13:12:19 +01:00
Joel Nothman aceb73cc52 [MRG + 1] CI some improvements to the flake8 CI (#8036)
Examples now cannot fail due to 'E402 module level import not at top of file'
2016-12-13 18:08:30 +01:00
Loïc Estève fc3bec7b8a MAINT remove superflous repo unshallowing in flake8_diff.sh 2016-12-05 15:52:22 +01:00
Loïc Estève cd4806abb3 Disable git pager in flake8_diff.sh 2016-11-07 14:14:29 +01:00
Loïc Estève 20912ed389 FIX flake8_diff.sh git repo unshallowing (#7575)
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
2016-10-04 19:29:22 +02:00
Loïc Estève 98678baafd Avoid creating an ambiguous reference for usptream/master
There was a clash between refs/upstream/master and
refs/remotes/upstream/master. That was problematic when running
flake8_diff.sh locally.
2016-09-23 16:57:09 +02:00
Óscar Nájera 1054e072da [MAINT] Upgrade to Sphinx-Gallery 0.1.4 (#7354)
* [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
2016-09-16 10:58:31 +02:00
Loïc Estève 396dc39c68 Change flake8_diff.sh logic for branch in main repo (#7437)
Only commits that were pushed in the branch are tested. They are
provided by the TRAVIS_COMMIT_RANGE environment variable.
2016-09-15 14:10:33 +02:00
Loïc Estève 53058619b5 Fix flake8_diff.sh when Travis runs in a fork
The grep was not matching anything so the script exited with a 1 exit code.
2016-09-06 16:11:31 +02:00
Loïc Estève 03e3012414 Exclude sklearn/externals from diff for flake8 2016-08-30 12:59:08 +02:00
Loïc Estève 4566251618 [MRG+3] Add flake8 linting of the diff in Travis (#7127)
* 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
2016-08-30 12:59:57 +10:00