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

Check code formatting with autopep8, fix formatting for codebase #82

Merged
merged 24 commits into from
Jan 19, 2021

Conversation

BenjaminRodenberg
Copy link
Member

No description provided.

@BenjaminRodenberg BenjaminRodenberg added the enhancement New feature or request label Jan 18, 2021
@BenjaminRodenberg BenjaminRodenberg self-assigned this Jan 18, 2021
@BenjaminRodenberg
Copy link
Member Author

@IshaanDesai For review: Please take special care about b6e013a, since I touched the tests here. Hopefully did not break anything.

Copy link
Member Author

@BenjaminRodenberg BenjaminRodenberg left a comment

Choose a reason for hiding this comment

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

Ready for review. Already had a very close look at test/test_bindings_module.py. I'm quite hopeful that I did not break the tests.

@@ -5,7 +5,8 @@
import precice

parser = argparse.ArgumentParser()
parser.add_argument("configurationFileName", help="Name of the xml config file.", type=str)
parser.add_argument("configurationFileName",
help="Name of the xml config file.", type=str)
parser.add_argument("participantName", help="Name of the solver.", type=str)
parser.add_argument("meshName", help="Name of the mesh.", type=str)

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
args = None

@@ -33,7 +34,8 @@
solver_process_index = 0
solver_process_size = 1

interface = precice.Interface(participant_name, configuration_file_name, solver_process_index, solver_process_size)
interface = precice.Interface(participant_name, configuration_file_name,
solver_process_index, solver_process_size)

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
read_data_name, write_data_name = None, None

This line can go even further below but I was not able to add a suggestion where there was no code change in the review.

Copy link
Member

@IshaanDesai IshaanDesai left a comment

Choose a reason for hiding this comment

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

In setup.py function names like my_build_ext and my_install prompt a suggestion Class names should use CamelCase convention. I am not sure if this is relevant and important.

@BenjaminRodenberg
Copy link
Member Author

In setup.py function names like my_build_ext and my_install prompt a suggestion Class names should use CamelCase convention. I am not sure if this is relevant and important.

Technically yes. However, I think this is a corner case, since also setuptools diverges from this convention:

https://github.com/pypa/setuptools/blob/8222d6f7b992d3b184434acb31cd66b0f2e41401/setuptools/command/build_ext.py#L75

So let's keep it as it is. Thanks for the review! I will merge now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants