After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 764087 - [PATCH] Move pep8/pyflakes tests from 'make check' to 'make check.quality'
[PATCH] Move pep8/pyflakes tests from 'make check' to 'make check.quality'
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-23 16:24 UTC by Christoph Reiter (lazka)
Modified: 2016-12-23 09:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move pep8/pyflakes tests from 'make check' to 'make check.quality' (2.05 KB, patch)
2016-03-23 16:24 UTC, Christoph Reiter (lazka)
committed Details | Review

Description Christoph Reiter (lazka) 2016-03-23 16:24:16 UTC
Created attachment 324598 [details] [review]
Move pep8/pyflakes tests from 'make check' to 'make check.quality'

A proposal, feedback welcome.
Comment 1 Simon Feltman 2016-03-26 22:26:26 UTC
Hi Christoph,

I'm curious if this is a reaction to problems like bug 764165?

What do you think about including pyflakes and pep8 as part of the pygobject source tree similar to what gobject-introspetion does [1] ? This would also avoid the occasional pyflakes/pep8 failures which come when newer versions of these tools come along.

I believe bug 764165 was probably an error on my part because I had been developing on a new machine without these tools installed. It looks like the test suite happily passes in this case, only printing a warning which is quickly lost in the test output.

[1] https://git.gnome.org/browse/gobject-introspection/tree/misc
Comment 2 Christoph Reiter (lazka) 2016-03-31 06:56:33 UTC
(In reply to Simon Feltman from comment #1)
> Hi Christoph,
> 
> I'm curious if this is a reaction to problems like bug 764165?

Yeah, but had it on my mind before. I'm mostly concerned that distributions or people trying to provide patches fail to run the test suite because of this.

Imho doing a check.quality+fix run once in a while is a good compromise. Or if during review obvious errors are visible ask for a check.quality run.

> What do you think about including pyflakes and pep8 as part of the pygobject
> source tree similar to what gobject-introspetion does [1] ? This would also
> avoid the occasional pyflakes/pep8 failures which come when newer versions
> of these tools come along.

Sounds like a good idea as well.

Another thing I find annoying is that pep8/pyflakes takes a long time, especially if only one test is executed... which would also be addressed with the attached patch here.
Comment 3 Simon Feltman 2016-12-23 01:10:21 UTC
Review of attachment 324598 [details] [review]:

Ok, lets do this.
Comment 4 Christoph Reiter (lazka) 2016-12-23 09:10:38 UTC
Thanks