Skip to content

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

Merged
BenjaminRodenberg merged 24 commits intodevelopfrom
check-pep8
Jan 19, 2021
Merged

Check code formatting with autopep8, fix formatting for codebase#82
BenjaminRodenberg merged 24 commits intodevelopfrom
check-pep8

Conversation

@BenjaminRodenberg
Copy link
Contributor

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
Contributor Author

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

Copy link
Contributor 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.

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

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
Contributor 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