google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

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

Open sugamadhiakri opened this issue 1 year ago • 2 comments

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!

sugamadhiakri avatar Jul 13 '24 19:07 sugamadhiakri

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.

google-cla[bot] avatar Jul 13 '24 19:07 google-cla[bot]

resolves #1120

sugamadhiakri avatar Jul 13 '24 19:07 sugamadhiakri