When passing `.py` paths to the format command, clang-format paths would be empty and operate on all paths. Resolve by detecting cases when there is nothing to format. Ref: !126055
When passing `.py` paths to the format command, clang-format paths would be empty and operate on all paths. Resolve by detecting cases when there is nothing to format. Ref: !126055