Skip to content

Conversation

@dwillmer
Copy link
Contributor

  • Consistent use of single/double quotes. Standalone strings were mostly single-quoted, so i stuck with that, whereas docstrings were all double-quoted, so I left them alone.
  • Consistent use of ipython copyright header.
  • Re-jig any code over 79 chars, except regex lines.
  • Remove triple-quoted strings where the string fits on one line.
  • Assign repeated code fragments to local variables, where it makes sense.
  • Fix typos.
  • Consistent spacing around binary operators.
  • Remove mutable default arguments.
  • Remove whitespace at end-of-line.
  • Factor out complex (and long) if-criteria in pickleutil.
  • Move global var in test module to function local.
  • Consistent UTF-8 encoding notice in each file (required to keep py2.7 tests passing)

@takluyver
Copy link
Member

Thanks for taking the time to work on this. However, we don't generally accept big 'cleanup' PRs - it's liable to cause merge conflicts, it makes git blame less useful, and code style just isn't all that important to us.

It's fine to clean up a specific piece of code you're making functional changes to, but our policy is to reject PRs that just do cleanup, especially when they touch many files at once. Sorry this wasn't clear before you started.

@takluyver takluyver closed this Mar 31, 2016
@takluyver takluyver added this to the no action milestone Mar 31, 2016
@ellisonbg
Copy link
Member

I think a blanket rejection is too harsh. This PR does more than simple white space cleanup. And some of that is important refactoring. I agree that the broad code formatting stuff should go in, but the refactoring stuff should.

@ellisonbg ellisonbg reopened this Mar 31, 2016
@ellisonbg
Copy link
Member

Oops typo - I agree with Thomas that the simple code formatting stuff - white space quotes. - should not go in

allow_none=True)
# the client class for KM.client() shortcut
client_class = DottedObjectName('ipykernel.inprocess.BlockingInProcessKernelClient')
name = 'ipykernel.inprocess.BlockingInProcessKernelClient'
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't seem like this should be a name attribute on the kernel manager class.

@takluyver
Copy link
Member

Fair enough, I didn't notice that were actual significant changes amongst all the code style stuff. Scanning through the changes, though, I suspect it's going to be quicker to redo those changes starting from master than to separate them out of the formatting changes in this PR.

@Carreau
Copy link
Member

Carreau commented Apr 4, 2016

Fair enough, I didn't notice that were actual significant changes amongst all the code style stuff. Scanning through the changes, though, I suspect it's going to be quicker to redo those changes starting from master than to separate them out of the formatting changes in this PR.

I seem to agree, and i have a hard time finding the actual changes, even with ?w=0.

@Carreau
Copy link
Member

Carreau commented Apr 8, 2016

And some of that is important refactoring

Ok, I'm just spend 30 minutes going through that chuck by chunk, I honestly haven't found the parts that is "important refactoring" and will be needed later. I would be happy to get some pointer to where it is.
I might be tired and missed it though, it's hard to find in this 1k line change.

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.

4 participants