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

[SW-1204] Fix formating in python tests #1133

Merged
merged 1 commit into from Apr 16, 2019
Merged

[SW-1204] Fix formating in python tests #1133

merged 1 commit into from Apr 16, 2019

Conversation

jakubhava
Copy link
Contributor

@jakubhava jakubhava commented Apr 15, 2019

No semantic changes -> just clicked on reformat code in Idea in test utilities and tests files themselfs

@jakubhava jakubhava requested a review from mn-mikke April 15, 2019 19:00
Copy link
Collaborator

@mn-mikke mn-mikke left a comment

Choose a reason for hiding this comment

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

Have one question, otherwise LGTM


def locate(file_name):
if os.path.isfile("/home/0xdiag/" + file_name):
return os.path.abspath("/home/0xdiag/" + file_name)
else:
return os.path.abspath("../examples/" + file_name)

def cluster_mode(spark_conf = None):

def cluster_mode(spark_conf=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer the original version with spaces or is it more frequent like this in Python?

@jakubhava
Copy link
Contributor Author

jakubhava commented Apr 15, 2019

Yup, PEP8 recommends to not have spaces around =. Citing:

Don't use spaces around the = sign when used to indicate a keyword argument, or when used to indicate a default value for an unannotated function parameter.

from https://www.python.org/dev/peps/pep-0008/#other-recommendations

@jakubhava jakubhava merged commit 77b9247 into master Apr 16, 2019
@jakubhava jakubhava deleted the jh/jira/sw-1204 branch April 16, 2019 05:37
jakubhava added a commit that referenced this pull request Apr 16, 2019
jakubhava added a commit that referenced this pull request Apr 16, 2019
(cherry picked from commit 77b9247)
(cherry picked from commit 9876404)
jakubhava added a commit that referenced this pull request Apr 16, 2019
(cherry picked from commit 77b9247)
(cherry picked from commit 9876404)
jakubhava added a commit that referenced this pull request Apr 16, 2019
(cherry picked from commit 77b9247)
(cherry picked from commit 9876404)
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

2 participants