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 727371 - Conform to PEP8 1.5.1's check for E265 (missing whitespace after inline comment symbol)
Conform to PEP8 1.5.1's check for E265 (missing whitespace after inline comme...
Status: RESOLVED OBSOLETE
Product: pitivi
Classification: Other
Component: Code review
Git
Other Linux
: Normal minor
: Git
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-31 03:25 UTC by Georges Basile Stavracas Neto
Modified: 2015-10-20 13:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (901 bytes, patch)
2014-03-31 03:45 UTC, Georges Basile Stavracas Neto
rejected Details | Review

Description Georges Basile Stavracas Neto 2014-03-31 03:25:08 UTC
Since I upgraded to PEP8 1.5.1, every time I try to commit I receive these messages (e.g.):

./pitivi/mainwindow.py:496:1: E265 block comment should start with '# '
./pitivi/mainwindow.py:506:1: E265 block comment should start with '# '
./pitivi/mainwindow.py:554:1: E265 block comment should start with '# '
./pitivi/mainwindow.py:726:9: E265 block comment should start with '# '
./pitivi/mainwindow.py:727:9: E265 block comment should start with '# '
./pitivi/mainwindow.py:767:9: E265 block comment should start with '# '
./pitivi/mainwindow.py:768:9: E265 block comment should start with '# '
./pitivi/mainwindow.py:940:13: E265 block comment should start with '# '
./pitivi/mainwindow.py:1017:9: E265 block comment should start with '# '
./pitivi/mainwindow.py:1018:9: E265 block comment should start with '# '
./pitivi/mainwindow.py:1055:1: E265 block comment should start with '# '
./pitivi/mainwindow.py:1076:13: E265 block comment should start with '# '
./pitivi/mainwindow.py:1077:13: E265 block comment should start with '# '
./pitivi/mainwindow.py:1102:1: E265 block comment should start with '# '

Note, however, that this is not modified code.
Comment 1 Georges Basile Stavracas Neto 2014-03-31 03:45:36 UTC
Created attachment 273314 [details] [review]
Proposed fix

Proposed fix.
Comment 2 Jean-François Fortin Tam 2014-04-15 00:17:26 UTC
As far as I understand it, E265 is just enforcing the rule where

    #this comment is invalid

but

    # This comment is valid, as it has a whitespace after the "#"


...which seems like good practice/something that helps legibility.
If my understanding is correct, I'd be in favor of correcting these
offending comments across the codebase rather than ignoring that error ;)
Comment 3 Jean-François Fortin Tam 2014-06-05 19:04:36 UTC
Review of attachment 273314 [details] [review]:

As per the last comment, and since there were no objections/follow-up comments... better to fix the problem than hide the warning!
Comment 4 Thibault Saunier 2015-10-20 13:19:42 UTC
This bug has been migrated to https://phabricator.freedesktop.org/T3178.

Please use the Phabricator interface to report further bugs by creating a task and associating it with Project: Pitivi.

See http://wiki.pitivi.org/wiki/Bug_reporting for details.