Repository navigation
MAINT Use CircleCI for linting - #12606
Merged
Merged
Conversation
Member
Author
|
Now running flake8 takes 10s (assuming the python3.6 docker image is cached in Circle CI and doesn't need to be downloaded). |
jnothman
reviewed
Nov 18, 2018
jnothman
left a comment
Member
There was a problem hiding this comment.
I think this is good.
Somewhere in the dev docs we describe the function of each CI service. That should be updated.
| command: sudo pip install flake8 | ||
| - run: | ||
| name: flake8 | ||
| command: ./build_tools/travis/flake8_diff.sh |
Member
There was a problem hiding this comment.
should this file move out of travis?
Member
Author
|
Thanks for the review @jnothman, addressed your comments. |
eamanu
approved these changes
Nov 18, 2018
jnothman
approved these changes
Nov 18, 2018
qinhanmin2014
approved these changes
Nov 19, 2018
Member
|
I just saw that, very nice! |
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
This reverts commit f9c30c8.
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
This reverts commit f9c30c8.
koenvandevelde
pushed a commit
to koenvandevelde/scikit-learn
that referenced
this pull request
Jul 12, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, ~50% of failing Travis CI in PRs is due to flake8. To discover that flake8 failed one has to click on the Travis CI results and look at the last job. It takes 2-3 minutes to run as the installation of dependencies with conda is slow (it also installs e.g. numpy that is not needed).
This migrates linting to Circle CI, with flake8 installed with pip (which should be faster). The result could also be directly seen in the PR. This also allows simplifying a bit the Travis CI build scripts that are somewhat complex.