pep8 check ignores identation errors

Bug #1085346 reported by Lin Hua Cheng
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Wishlist
Unassigned

Bug Description

The indentation check for pep8 have been changed to be relax.

In the sample code:

ram = tables.Column(get_size,
 verbose_name=_('RAM'),
 attrs={'data-type': 'size'})

Second and third line only has one space indented, and pep8 check passes. Should this be made stricter?

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

That's not ideal, certainly. I believe that change came from pep8.py v1.2 or 1.3 including some really inappropriately strict whitespace checking so we turned it off. If we can set it to a happy medium that fits the current coding style (aside from that particular example) we can turn it back on, otherwise we should fix any cases of bad indents and just catch them in reviews.

Changed in horizon:
importance: Undecided → Wishlist
milestone: none → grizzly-2
status: New → Confirmed
Changed in horizon:
milestone: grizzly-2 → grizzly-3
Changed in horizon:
milestone: grizzly-3 → none
Simon Luo (simon-t)
Changed in horizon:
assignee: nobody → Simon Luo (simon-t)
Simon Luo (simon-t)
description: updated
Revision history for this message
Kun Huang (academicgareth) wrote :

The E121 (65 lines), E126 (108), E127(350), E128(282) are relative with this bug.
I think we could submit four commits for each E12X by using "Partial-Bug: #1085346"

Revision history for this message
Simon Luo (simon-t) wrote :

Thansk for your comments, I agree with you. so i must commit this bugfix with four patch like this:
bug/1085346#1/4
bug/1085346#2/4
bug/1085346#3/4
bug/1085346#4/4

right?
Looking forward to your reply.

Kind Regards
Simon Luo

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/45182

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/45192

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/45182
Committed: http://github.com/openstack/horizon/commit/ec727ac39426c2a6be70a7c9cf75c00e4ae0c91c
Submitter: Jenkins
Branch: master

commit ec727ac39426c2a6be70a7c9cf75c00e4ae0c91c
Author: simon <email address hidden>
Date: Thu Sep 5 14:38:58 2013 +0800

    PEP8 E121 has been resolved

    Change-Id: I6ad2704100447c5a3be12c2ebeec824726e3bd0b
    Partial-Bug: #1085346

Changed in horizon:
assignee: Simon Luo (simon-t) → Akihiro Motoki (amotoki)
Akihiro Motoki (amotoki)
Changed in horizon:
assignee: Akihiro Motoki (amotoki) → Simon Luo (simon-t)
Revision history for this message
Simon Luo (simon-t) wrote :

Waiting for the second bugfix will have been merged, then I can commit the third bugfix.

Every commit for this bug, always changed the most files, and conflicts also happen when you submit a new commit.

thanks

Changed in horizon:
assignee: Simon Luo (simon-t) → Akihiro Motoki (amotoki)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/45192
Committed: http://github.com/openstack/horizon/commit/afaa72185cf2e1a41ef685778111d8f51515e050
Submitter: Jenkins
Branch: master

commit afaa72185cf2e1a41ef685778111d8f51515e050
Author: simon <email address hidden>
Date: Thu Sep 5 15:49:35 2013 +0800

    PEP8 E126 has been resolved

    Change-Id: Ic5d3b96b6061b7a34e7620d8d09418bd6976fbb1
    Partial-Bug: #1085346

Simon Luo (simon-t)
Changed in horizon:
assignee: Akihiro Motoki (amotoki) → Simon Luo (simon-t)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/48826

Matthias Runge (mrunge)
Changed in horizon:
status: In Progress → Confirmed
assignee: Simon Luo (simon-t) → nobody
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

This is alaready resolved by https://review.openstack.org/#/c/125137/

Changed in horizon:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.