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
Conversation
python/lsst/pipe/base/cmdLineTask.py
Outdated
@@ -50,7 +50,7 @@ def _poolFunctionWrapper(function, arg): | |||
return function(arg) | |||
except Exception: | |||
raise # No worries | |||
except: | |||
except: # noqa E722 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
python/lsst/pipe/base/cmdLineTask.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
It would probably be better to include E226, but since this is already merged, I suggest a new ticket. |
No description provided.