<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 8:45 AM, Kevin L. Mitchell <span dir="ltr"><<a href="mailto:kevin.mitchell@rackspace.com" target="_blank">kevin.mitchell@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Mon, 2015-08-24 at 22:53 -0700, Clay Gerrard wrote:<br>
> So, I know that hacking has H301 (one import per line) - but say maybe<br>
> you wanted to import *more* that one thing on a line (there's some<br>
> exceptions right? sqlalchemy migrations or something?)<br>
<br>
</span>There's never a need to import more than one thing per line given the<br>
rule to only import modules, not objects. While that is not currently<br>
enforced by hacking, it is a strong style guideline. (Exceptions for<br>
things like sqlalchemy do exist, of course.)<br></blockquote><div><br></div><div>Thank you for echoing my premise - H301 exists, but there are exceptions, so...</div><div><br></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px">On Mon, 2015-08-24 at 22:53 -0700, Clay Gerrard wrote:</span><br style="color:rgb(80,0,80);font-size:12.8000001907349px"></div><div><span style="font-size:12.8000001907349px">Anyway - I'm sure there could be a pep8 plugin rule that enforces use of parenthesis for multi line imports instead backslash line breaks [1] - but would that be something that hacking would want to carry (since *most* of the time H301 would kick in first?) - or if not; is there a way to plug it into pep8 outside of hacking without having to install some random one-off extension for this one rule separately? </span><span style="color:rgb(80,0,80);font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">-Clay</span></div></div></div></div>