Questions: Flake8-2.4.1
Just installed flake8-2.4.1. Checking a file generates this error: pwschemasl.py:698:39: E225 missing whitespace around operator on this line: rpt_filename=Column(BLOB, nullable=False) where position 39 is 'F'. So, I add the space: rpt_filename=Column(BLOB, nullable= False) and now flake8 shows this error: pwschemasl.py:698:40: E251 unexpected spaces around keyword / parameter equals This is an infinite loop that affects many lines of code in the file. The lines throw a PEP8 compliance error both with and without a space following the '=' sign. Is there something I've done incorrectly that I don't see? Puzzled, Rich
On Sat, Jul 25, 2015 at 11:36 AM, Rich Shepard <rshepard@appl-ecosys.com> wrote:
Just installed flake8-2.4.1. Checking a file generates this error:
pwschemasl.py:698:39: E225 missing whitespace around operator
on this line:
rpt_filename=Column(BLOB, nullable=False)
where position 39 is 'F'. So, I add the space:
rpt_filename=Column(BLOB, nullable= False)
and now flake8 shows this error:
pwschemasl.py:698:40: E251 unexpected spaces around keyword / parameter equals
This is an infinite loop that affects many lines of code in the file. The lines throw a PEP8 compliance error both with and without a space following the '=' sign.
Is there something I've done incorrectly that I don't see?
Puzzled,
Rich
Hey Rich, Could you provide a bit more context for the code? A single line and an error message aren't very useful for me to reproduce with. Further, could you provide the output from $ flake8 --version Thanks! Ian
On Sat, 25 Jul 2015, Ian Cordasco wrote:
Could you provide a bit more context for the code? A single line and an error message aren't very useful for me to reproduce with.
Ian, This is interesting. I shut down emacs for a couple of hours. Just invoked it and loaded the source file. Running flake8 on it is now consistent. When before it complained about white space, then the lack of it, now it complains about the lack of white space and likes when I add it. Strange. Sorry to interupt your weekend. Seems like a flake8 fluke that a rest resolved.
Further, could you provide the output from $ flake8 --version
flake8 --version 2.4.1 (pep8: 1.5.7, pyflakes: 0.8.1, mccabe: 0.3.1) CPython 2.7.5 on Linux Regards, Rich
On Sat, Jul 25, 2015 at 7:00 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:
On Sat, 25 Jul 2015, Ian Cordasco wrote:
Could you provide a bit more context for the code? A single line and an error message aren't very useful for me to reproduce with.
Ian,
This is interesting. I shut down emacs for a couple of hours. Just invoked it and loaded the source file. Running flake8 on it is now consistent. When before it complained about white space, then the lack of it, now it complains about the lack of white space and likes when I add it. Strange.
I'm not sure what you mean but you seem content with the resolution so I won't press my luck.
Sorry to interupt your weekend. Seems like a flake8 fluke that a rest resolved.
No worries. You didn't cause me any trouble. I check my email every day of the week. :-D
Further, could you provide the output from $ flake8 --version
flake8 --version 2.4.1 (pep8: 1.5.7, pyflakes: 0.8.1, mccabe: 0.3.1) CPython 2.7.5 on Linux
Regards,
Rich _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality
assignment `=` should be have spaces. keyword argument `=` should not have spaces (except case of function annotation in definition). So On Sun, Jul 26, 2015 at 1:36 AM, Rich Shepard <rshepard@appl-ecosys.com> wrote:
Just installed flake8-2.4.1. Checking a file generates this error:
pwschemasl.py:698:39: E225 missing whitespace around operator
on this line:
rpt_filename=Column(BLOB, nullable=False)
where position 39 is 'F'. So, I add the space:
rpt_filename=Column(BLOB, nullable= False)
This should be: rpt_filename = Column(BLOB, nullable=False)
and now flake8 shows this error:
pwschemasl.py:698:40: E251 unexpected spaces around keyword / parameter equals
This is an infinite loop that affects many lines of code in the file. The lines throw a PEP8 compliance error both with and without a space following the '=' sign.
Is there something I've done incorrectly that I don't see?
Puzzled,
Rich _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality
-- INADA Naoki <songofacandy@gmail.com>
participants (3)
-
Ian Cordasco
-
INADA Naoki
-
Rich Shepard