-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
There was a problem hiding this 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
Yes, I would also wait a little more to see if we are happy with stickler |
OK. Let's wait a little more. |
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. |
@Zac-HD, I don't mean to drop CI-based flake8 checking. I thought if stickler works fine, travis could concentrate on testing, 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. Do you have any idea to realize more explicit failure reporting? |
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. |
Thanks for the information.
But why is travis so special? |
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. |
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! |
FWIW I think stickler is working v well, +1 to merge this |
@fujiisoup - I think you can merge this whenever you're ready. |
The removal of flake8 from travis would increase the clearer separation between style-issue and test failure.