Daemon code cleanup

Bug #947271 reported by Duncan McGreggor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Accomplishments Daemon
Fix Released
Low
Matt Fischer

Bug Description

There are a bunch of things should should be cleaned up in the daemon code. At a quick glance, they include the following:
 * lines longer than 79 chars
 * mixed lowerCamelCase and under_score for method names
 * incorrect newline counts between module-level code
 * incorrect indentation of code that continues onto next line (e.g., list comprehensions and parens)

Revision history for this message
Jono Bacon (jonobacon) wrote :

Are these pieces to ensure it is inline with PEP-8?

Changed in ubuntu-accomplishments-system:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Duncan McGreggor (oubiwann) wrote :

PEP8 and other best practices, yes. (But mostly PEP8.)

Revision history for this message
Jono Bacon (jonobacon) wrote :

Makes sense.

Changed in ubuntu-accomplishments-system:
status: Incomplete → Confirmed
Jono Bacon (jonobacon)
affects: ubuntu-accomplishments-system → ubuntu-accomplishments-daemon
Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

Working on this

Changed in ubuntu-accomplishments-daemon:
assignee: nobody → Nicolas Valcarcel (nvalcarcel)
Changed in ubuntu-accomplishments-daemon:
status: Confirmed → Fix Committed
Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

Please do not mark this bug as "Fix committed", as it annotates that the fix is ready in trunk and bug can be considered as fixed, which is not yet the case.

Changed in ubuntu-accomplishments-daemon:
status: Fix Committed → In Progress
Revision history for this message
Jono Bacon (jonobacon) wrote :

What is the current status of this bug - Rafal, do you consider that your recent work fixes this?

Changed in ubuntu-accomplishments-daemon:
status: In Progress → Incomplete
Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

Definitely not, most likely it is even worse now ;-)
That branch linked to this bug could not be merged in (details in MP comments). I am not a python expert, but I expect there exists some automatic tool that does this work.
Anyway, this has to be redone for current code state, if we want to maintain PEP8 correctness.

Changed in ubuntu-accomplishments-daemon:
status: Incomplete → Triaged
Revision history for this message
Jono Bacon (jonobacon) wrote :

Agreed.

Maybe we could organize a short sprint one day and try and get all of this fixed. We can also tidy up the 'accom/accomplishment/acc' references that Matt outlined in https://bugs.launchpad.net/ubuntu-accomplishments-daemon/+bug/1024015

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote : Re: [Bug 947271] Re: Deamon code cleanup

i'll work on it. It's more of tools + trained eye to get it right.

On Sun, Jul 29, 2012 at 3:23 PM, Jono Bacon <email address hidden> wrote:
> Agreed.
>
> Maybe we could organize a short sprint one day and try and get all of
> this fixed. We can also tidy up the 'accom/accomplishment/acc'
> references that Matt outlined in https://bugs.launchpad.net/ubuntu-
> accomplishments-daemon/+bug/1024015
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/947271
>
> Title:
> Deamon code cleanup
>
> Status in Ubuntu Accomplishments Daemon:
> Triaged
>
> Bug description:
> There are a bunch of things should should be cleaned up in the daemon code. At a quick glance, they include the following:
> * lines longer than 79 chars
> * mixed lowerCamelCase and under_score for method names
> * incorrect newline counts between module-level code
> * incorrect indentation of code that continues onto next line (e.g., list comprehensions and parens)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-accomplishments-daemon/+bug/947271/+subscriptions

--
aka nxvl
Yo uso Software Libre, y tu?

Changed in ubuntu-accomplishments-daemon:
milestone: none → 0.3
Revision history for this message
Matt Fischer (mfisch) wrote : Re: Deamon code cleanup

Is this bug still being worked on?

Matt Fischer (mfisch)
summary: - Deamon code cleanup
+ Daemon code cleanup
Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote : Re: [Bug 947271] Re: Deamon code cleanup

I runned out of time, but i don't mind setting up a call or something
to teach you how to follow pep8

On Fri, Aug 17, 2012 at 11:52 AM, Matt Fischer
<email address hidden> wrote:
> Is this bug still being worked on?
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/947271
>
> Title:
> Deamon code cleanup
>
> Status in Ubuntu Accomplishments Daemon:
> Triaged
>
> Bug description:
> There are a bunch of things should should be cleaned up in the daemon code. At a quick glance, they include the following:
> * lines longer than 79 chars
> * mixed lowerCamelCase and under_score for method names
> * incorrect newline counts between module-level code
> * incorrect indentation of code that continues onto next line (e.g., list comprehensions and parens)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-accomplishments-daemon/+bug/947271/+subscriptions

--
aka nxvl
Yo uso Software Libre, y tu?

Revision history for this message
Matt Fischer (mfisch) wrote :

Using autopep8 to fight this beast. After some analysis, I will fix all but long lines which are used extensively for showing output in the docs and will need more careful analysis.

Changed in ubuntu-accomplishments-daemon:
assignee: Nicolas Valcarcel (nvalcarcel) → Matt Fischer (mfisch)
Matt Fischer (mfisch)
Changed in ubuntu-accomplishments-daemon:
status: Triaged → Fix Committed
Changed in ubuntu-accomplishments-daemon:
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.