-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
Use code and examples from https://github.com/peter-evans/autopep8
@IshaanDesai For review: Please take special care about b6e013a, since I touched the tests here. Hopefully did not break anything. |
There was a problem hiding this 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) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this 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.
Technically yes. However, I think this is a corner case, since also setuptools diverges from this convention: So let's keep it as it is. Thanks for the review! I will merge now. |
No description provided.