Skip to content

MAINT Use CircleCI for linting - #12606

Merged
qinhanmin2014 merged 5 commits into
scikit-learn:masterfrom
rth:circle-ci-lint
Nov 19, 2018
Merged

qinhanmin2014 merged 5 commits into
scikit-learn:masterfrom
rth:circle-ci-lint

Conversation

@rth

@rth rth commented Nov 17, 2018 •

Copy link
Copy Markdown
Member

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.

@rth

rth commented Nov 17, 2018

Copy link
Copy Markdown
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 jnothman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good.

Somewhere in the dev docs we describe the function of each CI service. That should be updated.

Comment thread .circleci/config.yml Outdated
command: sudo pip install flake8
- run:
name: flake8
command: ./build_tools/travis/flake8_diff.sh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this file move out of travis?

@rth

rth commented Nov 18, 2018

Copy link
Copy Markdown
Member Author

Thanks for the review @jnothman, addressed your comments.

@qinhanmin2014
qinhanmin2014 merged commit 66507a2 into scikit-learn:master Nov 19, 2018
@rth
rth deleted the circle-ci-lint branch November 19, 2018 08:12
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Nov 20, 2018
@lesteve

lesteve commented Nov 21, 2018

Copy link
Copy Markdown
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
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants