pep8: threading.py and log.py failed

Bug #1298551 reported by Trevor Vardeman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Low
Trevor Vardeman

Bug Description

Running pep8 with the following command in the base directory of oslo-incubator:
$ pep8 `find . -iname "*.py" | grep -v ".*/.tox/.*"`

yields the following results:
./openstack/common/report/views/text/threading.py:55:80: E501 line too long (84 characters)
./openstack/common/log.py:468:50: E251 no spaces around keyword / parameter equals

Changed in oslo:
assignee: nobody → Trevor Vardeman (trevor-vardeman)
Ben Nemec (bnemec)
Changed in oslo:
status: New → Won't Fix
Revision history for this message
Ben Nemec (bnemec) wrote :

This is because we use a variation on pep8, including flake8 with some custom rules we've written in the hacking project. I don't think we expect plain pep8 to pass.

Although actually on second thought, I think we could remove the #noqa from the long line and it would get it under 80 chars. I'm not sure why that's there. I'll reopen this and you can fix that if you want.

Note that the way we run style checks is "tox -e pep8" (poorly named for historical reasons). Those are the rules we enforce in the gate.

Changed in oslo:
status: Won't Fix → Triaged
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (master)

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

Changed in oslo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/83570
Committed: https://git.openstack.org/cgit/openstack/oslo-incubator/commit/?id=914410f59f77b1aade79710665586691140550a0
Submitter: Jenkins
Branch: master

commit 914410f59f77b1aade79710665586691140550a0
Author: Trevor Vardeman <email address hidden>
Date: Thu Mar 27 15:06:03 2014 -0500

    Removed unneeded #noqa tag

    Closes-Bug: #1298551
    Change-Id: Ie6a75a57b9a765736d320c3eff624b7901540064

Changed in oslo:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → juno-1
status: Fix Committed → Fix Released
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.