Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-14366: Make pipe_base and pipe_tasks pep8 compliant #49

Merged
merged 4 commits into from May 11, 2018

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented May 11, 2018

No description provided.

@@ -50,7 +50,7 @@ def _poolFunctionWrapper(function, arg):
return function(arg)
except Exception:
raise # No worries
except:
except: # noqa E722
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the discussion in lsst-dm/legacy-pipe_supertask#17 where I discussed this exact problem with @andy-slac -- I think this should be BaseException or should maybe disappear completely in Python 3 land.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. I'll remove it.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay except for that one exception noqa.

@@ -173,7 +173,7 @@ class TaskRunner(object):
.. __: http://stackoverflow.com/questions/1408356/keyboard-interrupts-with-pythons-multiprocessing-pool
"""

TIMEOUT = 3600*24*30
TIMEOUT = 3600 * 24 * 30
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we required multiplications to not have spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I think I ran autopep8 and didn't notice the change.

which are generated when pytest is run manually
The code in question is not needed in modern Python
@r-owen r-owen merged commit ff24a87 into master May 11, 2018
@kfindeisen
Copy link
Member

kfindeisen commented May 14, 2018

Why isn't E226 on the ignore list? I thought that one was mandatory. Suggested patch in be6bbc8.

@r-owen
Copy link
Contributor Author

r-owen commented May 14, 2018

It would probably be better to include E226, but since this is already merged, I suggest a new ticket.

@ktlim ktlim deleted the tickets/DM-14366 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants