Hi 0xrichard, thanks for the patch! In this case though I kinda wish you'd talked with me before investing your time. Stem runs pycodestyle as part of its tests, and already complies with PEP8 in most regards. The ways in which it differs (for instance, two space indentation) is intentional...
If you'd care to push for us to be more compliant that's fine, but the approach we should take is...
Decide which of the above PEP8 compliance rules you feel strongly that we should follow.
File a ticket to discuss why you think we should change it.
Once we've established a consensus on following the rule remove its ignore configuration from the file mentioned above. Stem's tests should now cite all the spots where we don't comply with it.
Make the adjustments (like your patch does) to correct the compliance issues.
File a ticket to discuss why you think we should change it.
Just did
Once we've established a consensus on following the rule remove its ignore configuration from the file mentioned above. Stem's tests should now cite all the spots where we don't comply with it.
That's up to you, you tell me. I got time :)
Make the adjustments (like your patch does) to correct the compliance issues.
I had a great day, found some things I would've done differently
Fantastic! Glad you found this fruitful. :)
File a ticket to discuss why you think we should change it.
Just did
Yup! But we still need to discuss both what stylistic aspects you think we should change and why. Stem should be conformant with PEP8 except in the following respects...
Two space indentation rather than four.
Bare except clauses.
Space between keywords and arguments.
Which of these do you strongly feel we should change and why?
and the circular imports :(
If you make a separate commit with this and repro steps for triggering the circular dependency bug I'd be happy to chat.
and switch to pytest with fixtures
What benefit will that provide over what we presently have?
Gotcha. And why do you feel strongly we should change this?
don't put stuff in init
Do you have a use case where this causes any problems? Putting code in init is common, and done by lots of projects.
flexibility... and yes, it's worth it
Sorry, but this isn't terribly persuasive. Personally I think our present tests provide both great coverage and readable output but if you have a practical reason to think pytest would be better I'm all ears.