On Sun, Jul 26, 2015 at 12:39 PM, Rich Shepard <rshep...@appl-ecosys.com> wrote: > On Sun, 26 Jul 2015, Ian Cordasco wrote: > >>> So that would be formatted like so: >>> https://gist.github.com/sigmavirus24/67268ec32d614dffbcd1 > > > Ex2.py has this formatting: > > category = Column( > Unicode(16), value='Environmental', nullable=False, > CheckConstraint( > "category IN('Air', 'Environmental', 'Health', 'Safety', > 'Occupancy'," > "'Water')" > ) > ) > > which is how I reformatted my code (now starting on line 85): > > category = Column( > Unicode(16), value = 'Environmental', nullable = False, > CheckConstraint( > "category IN('Air', 'Environmental', 'Health', 'Safety', > 'Occupancy'," > "'Water')" > ) > )
Note that pep8 disallows spaces around keyword arguments, you have value = 'Environmental' When pep8 wants value='Environmental' Spaces around an = is for assignment, not for keyword arguments. > and this is what flake8 shows: > > 85:25: E201 whitespace after '(' > 87:13: E128 continuation line under-indented for visual indent This doesn't seem right. Can you share a file that causes this error? Literally save the file and either email it to me privately or post it somewhere where I can download this and run it locally? > flake8 seems to have issues also with how emacs enters a space. In lines > like this one > > __tablename__ = 'permits' > > it tells me there is a missing white space aound the operator. I delete the > both spaces and re-enter them and that error goes away. Is Flake8 running as part of Emacs with something like Flycheck? _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality