On Fri, Feb 7, 2014 at 6:40 AM, Jay Pipes <jaypi...@gmail.com> wrote: > On Fri, 2014-02-07 at 15:36 +0100, Julien Danjou wrote: >> On Fri, Feb 07 2014, Jay Pipes wrote: >> >> > On Fri, 2014-02-07 at 14:25 +0000, Matthew Booth wrote: >> >> I have a comment which references a long URL. The URL itself is longer >> >> than 80 characters. Jenkins has flagged this as a pep8 failure, because >> >> the line is longer than 80 characters. >> >> >> >> This is an instance where in the past I have always applied common sense >> >> to the line length limit. You either have a long line or a broken URL. >> >> As the long line is more usable in this instance, it's the lesser of 2 >> >> evils. >> >> >> >> Is there a mechanism to to coerce Jenkins to allow it? Failing that, is >> >> there a mechanism to manually ignore a specific Jenkins failure? Failing >> >> that, is there a project convention for broken URLs? >> > >> > How about using a service like bit.ly to shorten the URL? Would that be >> > acceptable? >> >> This would be ridiculous. :-/ > > ? Why would that be ridiculous? I'm not talking about having pep8 use > bit.ly. I'm talking about Matthew just shortening the URL with bit.ly > and putting the shortened URL in the comment. > >> Isn't #noqa working on such error? > > Yes, as I mentioned in a follow up...
E501 (line too long) can be disabled at the line level using the # noqa special comment Source: http://pep8.readthedocs.org/en/latest/intro.html#error-codes > > -jay > > > _______________________________________________ > OpenStack-dev mailing list > OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev _______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev