Skip to content

Conversation

@ColCarroll
Copy link
Member

@ColCarroll ColCarroll commented Jul 11, 2017

Added a new check to .pylintrc, in response to a comment on #2405. Went through a lot of files and also corrected a bunch of linter errors which makes this a bigger change than is probably good.
All changes should be cosmetic (except one undefined _log), and are, in roughly descending order of frequency:

  • Import order
  • line continuation indent
  • spacing between functions
  • getting rid of variables named l or I
  • turning lambdas into honest functions

Copy link
Member

Choose a reason for hiding this comment

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

Maybe this can be removed as well now following #2405 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Same answer as below -- I'd rather do that in a different PR.

Copy link
Member

Choose a reason for hiding this comment

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

remove as well (reason above)

Copy link
Member

Choose a reason for hiding this comment

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

remove as well (reason above)

Copy link
Member

Choose a reason for hiding this comment

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

is this still necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd want to check on that carefully -- so long as we support python2, this makes sure 2 / 3 != 0. I've never counted on this myself (choosing to explicitly cast), but I think that would be for a different PR.

Copy link
Member

Choose a reason for hiding this comment

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

is this still necessary?

Copy link
Member

Choose a reason for hiding this comment

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

is this still necessary?

@ColCarroll ColCarroll force-pushed the wrong_import_order branch from e0a7df7 to 4ff9e9c Compare July 20, 2017 13:26
@ColCarroll
Copy link
Member Author

Would be easier to start this new at this point!

@ColCarroll ColCarroll closed this Sep 9, 2017
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.

2 participants