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

[BEAM-1251] Upgrade pylint version for py27-lint3 #6489

Merged
merged 2 commits into from
Sep 25, 2018

Conversation

RobbeSneyders
Copy link
Contributor

@tvalentyn @Fematich @aaltay

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
Build Status --- --- ---

@@ -191,6 +191,7 @@ def expand(self, pcoll):

class SafeFastPrimitivesCoder(coders.Coder):
"""This class add an quote/unquote step to escape special characters."""
# pylint: disable=deprecated-urllib-function
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code has already been changed in #6451

@@ -55,6 +55,7 @@ def instance_to_type(o):
if o is None:
return type(None)
elif t not in typehints.DISALLOWED_PRIMITIVE_TYPES:
# pylint: disable=deprecated-types-field
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed for old-style Python 2 classes.

RobbeSneyders added a commit to RobbeSneyders/beam that referenced this pull request Sep 25, 2018
@@ -81,6 +81,7 @@ def __init__(self, side_inputs):
self._transform_to_side_inputs[side.pvalue.producer].append(side)

def __repr__(self):
# pylint: disable=dict-values-not-iterating
Copy link
Contributor

Choose a reason for hiding this comment

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

Would s/if self._views.values()/if self._views/ remove the lint warning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I've removed the values() call.

Copy link
Contributor

@tvalentyn tvalentyn left a comment

Choose a reason for hiding this comment

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

Thanks a lot, @RobbeSneyders

Copy link
Member

@aaltay aaltay left a comment

Choose a reason for hiding this comment

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

Awesome!

@aaltay aaltay merged commit 403360c into apache:master Sep 25, 2018
@RobbeSneyders RobbeSneyders mentioned this pull request Sep 26, 2018
2 tasks
splovyt pushed a commit to splovyt/beam that referenced this pull request Oct 1, 2018
* Upgrade pylint for py27-lint3 test to 1.9.3
splovyt pushed a commit to splovyt/beam that referenced this pull request Oct 2, 2018
* Upgrade pylint for py27-lint3 test to 1.9.3
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