From greg at bitwombat.com.au Fri Apr 12 02:35:10 2019 From: greg at bitwombat.com.au (Greg Bell) Date: Fri, 12 Apr 2019 16:35:10 +1000 Subject: [code-quality] How is pycodestyle invoked? Message-ID: <325d88cc-0da7-9357-c242-daa4abc3d636@bitwombat.com.au> Hi Devs, Thanks for flake8! My code is now less flakey. I'm seeing W503 on a particular file, which from RTFM'ing, I know is from pycodestyle. When I run pycodestyle on that file, I don't see W503. That means flake8 is invoking pycodestyle with some command-line options. I looked in the source for flake8 and couldn't find where this was. I looked at the options for flake8 and didn't see anything that looked like it would report how pycodestyle was being invoked. How is pycodestyle being invoked? Thanks for the help. From graffatcolmingov at gmail.com Sat Apr 13 08:25:57 2019 From: graffatcolmingov at gmail.com (Ian Stapleton Cordasco) Date: Sat, 13 Apr 2019 07:25:57 -0500 Subject: [code-quality] How is pycodestyle invoked? In-Reply-To: <325d88cc-0da7-9357-c242-daa4abc3d636@bitwombat.com.au> References: <325d88cc-0da7-9357-c242-daa4abc3d636@bitwombat.com.au> Message-ID: Flake8 uses pycodestyle as though it is a plugin. I believe W503 is controversial because the original PEP-0008 document has flip-flopped on what it thinks the style should be so W503 is probably in our default ignore list. How we plug pycodestyle into flake8 is in our packaging files (setup.py/cfg) On Sat, Apr 13, 2019 at 7:23 AM Greg Bell wrote: > > Hi Devs, > > Thanks for flake8! My code is now less flakey. > > I'm seeing W503 on a particular file, which from RTFM'ing, I know is > from pycodestyle. > > When I run pycodestyle on that file, I don't see W503. > > That means flake8 is invoking pycodestyle with some command-line options. > > I looked in the source for flake8 and couldn't find where this was. > > I looked at the options for flake8 and didn't see anything that looked > like it would report how pycodestyle was being invoked. > > How is pycodestyle being invoked? > > Thanks for the help. > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality