[Starlingx-discuss] pep 8 issue need to be fixed

Liu, ZhipengS zhipengs.liu at intel.com
Wed Apr 10 01:43:11 UTC 2019


Hi Penney,

When I update my patch, it report new pep8 issue for the files without change.
Errors are below.
E302  expected 2 blank lines, found 1
E126 continuation line over-indented for hanging indent
E127 continuation line over-indented for visual indent
E128  continuation line under-indented for visual indent
E305  expected 2 blank lines after class or function definition, found 1

What's your proposal for it, fix it or disable these errors?

Thanks!
Zhipeng

-----Original Message-----
From: Penney, Don [mailto:Don.Penney at windriver.com] 
Sent: 2019年3月29日 22:07
To: Jeremy Stanley <fungi at yuggoth.org>; starlingx-discuss at lists.starlingx.io
Subject: Re: [Starlingx-discuss] pep 8 issue need to be fixed

Al has posted a review for a quick fix to resolve the stx-integ issues:
https://review.openstack.org/#/c/648694/1


-----Original Message-----
From: Jeremy Stanley [mailto:fungi at yuggoth.org]
Sent: Friday, March 29, 2019 8:43 AM
To: starlingx-discuss at lists.starlingx.io
Subject: Re: [Starlingx-discuss] pep 8 issue need to be fixed

On 2019-03-29 05:35:06 +0000 (+0000), Liu, ZhipengS wrote:
[...]
> When I update my patch for stx-integ, it report below errors, which 
> causes "Verified -1 Zuul" Not sure why we have this issue now. It is a 
> common issue that I also saw in other patches submitted recently. Do 
> we need a new ticket to fix this pep8 issue or just disable B009 and 
> B010? Any comment?
[...]

Your tox.ini in that repository seems to include the flake8-bugbear plugin (with no version specifier) in the deps list for testenv:pep8. According to https://pypi.org/project/flake8-bugbear/#history they released a new version yesterday (19.3.0). Their changelog indicates they introduced new checks B009, B010 and B011 in that release.

One tactic we take to avoid having these sorts of issues in OpenStack is for projects to pick what versions of static analysis tools they're going to use at the start of a release cycle and pin them like flake8-bugbear<19 for the duration of that cycle, then advance the version pin at the start of the next cycle to bring in the latest versions and fix whatever those have started warning about. This minimizes the chances of disruption at later points in the cycle when they may more significantly detract from things like release-focused work.
--
Jeremy Stanley

_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss at lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss


More information about the Starlingx-discuss mailing list