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

Rename google-java-format-diff.py to google_java_format_diff.py for **Module Import** Compatibility #1121

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sugamadhiakri
Copy link

This pull request renames the file google-java-format-diff.py to google_java_format_diff.py and updates all occurrences in the codebase and documentation to reflect this change. The primary motivation for this change is to enable the script to be imported as a Python module, which is not possible with hyphens in the filename.

Changes Made:

  1. Renamed google-java-format-diff.py to google_java_format_diff.py.
  2. Updated all occurrences of google-java-format-diff.py in the code, README, and LICENSE to google_java_format_diff.py.

Benefits:

  1. Enables importing google_java_format_diff.py as a module, facilitating its use in other Python scripts and improving modularity.
  2. Enhances the script's compatibility with Python standards for module names.

Please review the changes and let me know if any further modifications are needed. Thank you!

Copy link

google-cla bot commented Jul 13, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@sugamadhiakri
Copy link
Author

resolves #1120

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.

1 participant