On Sun, Jul 26, 2015 at 11:37 AM, Ian Cordasco <graffatcolmin...@gmail.com> wrote: > On Sun, Jul 26, 2015 at 10:58 AM, Rich Shepard <rshep...@appl-ecosys.com> > wrote: >> I've numbered the lines in this code fragment: >> >> 83 category = Column(Unicode(16), value = 'Environmental', nullable = >> False, >> 84 CheckConstraint( >> 84 "category IN('Air', 'Environmental', 'Health', 'Safety', >> 'Occupancy', >> 86 'Water'")) > > So that would be formatted like so: > > https://gist.github.com/sigmavirus24/67268ec32d614dffbcd1 > > I used a gist because it uses pre-formatted (fixed-width font) text so > that it's much clearer than email where depending on your reader it > can either be fixed with, or variable width, etc. > > That said, your "CheckConstraint" parameter looks odd to me but I > copied it and made it appropriately multi-line as you would expect it > to work. (Taking advantage of the interpreter's native concatenation > of adjacent string literals.)
Also keep in mind, that there's more than one way to satisfy PEP8. I updated that gist with a few other ways that *should* satisfy pep8. _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality