Skip to content

Remove flake8 from travis #1919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2018

Conversation

fujiisoup
Copy link
Member

The removal of flake8 from travis would increase the clearer separation between style-issue and test failure.

Copy link
Member

@shoyer shoyer left a comment

Choose a reason for hiding this comment

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

If we're confident that stickler is serving

@fmaussion
Copy link
Member

Yes, I would also wait a little more to see if we are happy with stickler

@fujiisoup
Copy link
Member Author

OK. Let's wait a little more.
It looks the rules are a little bit difference between flake8 in travis and stickler-ci.

@Zac-HD
Copy link
Contributor

Zac-HD commented Feb 28, 2018

I would be very disappointed to remove the flake8 check from Travis - in my experience, style guides are only applied consistently if they are enforced by CI.

Ensuring that each pull maintains our standards is much less burdensome than regular "big push" efforts to get back to the standard (see eg #1741 and #1824 - it took two people!), and avoids periods of lower code quality.

In short, I think that Travis is the right place to put these checks - review bots are a complement, not a substitute.

@fujiisoup
Copy link
Member Author

@Zac-HD, I don't mean to drop CI-based flake8 checking.
We are trying to move stickler-ci, which is a CI specific for flake8 check.

I thought if stickler works fine, travis could concentrate on testing,
but stickler does not behave as what I have expected.
I agree that it is not a good idea to remove flake8 check from travis at this moment.

I think that in the early stage of the development it would be nicer if we could easily distinguish between testing failure and style inconsistency, but travis just says succeeded or not.
(it is possible to find it if we look deep inside the travis's log, but it requires some burden).

Do you have any idea to realize more explicit failure reporting?

@Zac-HD
Copy link
Contributor

Zac-HD commented Feb 28, 2018

home-assistant uses https://houndci.com, and it seems to work pretty well for them - it just leaves a review with any flake8 comments at the relevant lines of the pull.

Note that while HoundCI is used to provide faster and more readable feedback to contributors, they still check flake8 in Travis to ensure everything is fixed before merging.

@fujiisoup
Copy link
Member Author

Thanks for the information.
I do not have much experience about HoundCI but if it works well, it could be an alternative of stickler.

they still check flake8 in Travis to ensure everything is fixed before merging.

But why is travis so special?
HoundCI reports any flake8 violation not only as comments but also in All checks have passed part of PR, as travis does.
I think that maintainers can check any flake8 violation just from HoundCI, before merging.

@max-sixty
Copy link
Collaborator

I share @fujiisoup 's perspective

But if people as wise as @Zac-HD disagree, let's leave Travis running for 1-2 months, see if it's helpful, and if it's not then we can turn it off. It's not immediately costly, and we'll gain understanding over the coming months.

@Zac-HD
Copy link
Contributor

Zac-HD commented Feb 28, 2018

Last time I used it Hound didn't update the PR status, so if so that removes one of my objections 😄 As a maintainer I prefer automating checks - I make mistakes, especially when tired, and it's nice knowing that the system has my back.

Hound only runs checks in the diff range though, so I think it's still valuable to keep running flake8 ourselves. Trying both for a few months before making a final decision sounds like a good idea to me!

@max-sixty
Copy link
Collaborator

FWIW I think stickler is working v well, +1 to merge this

@jhamman
Copy link
Member

jhamman commented May 1, 2018

@fujiisoup - I think you can merge this whenever you're ready.

@fujiisoup fujiisoup merged commit 39b2a37 into pydata:master May 1, 2018
@fujiisoup fujiisoup deleted the remove_flake8_from_travis branch May 1, 2018 07:24
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.

6 participants