ray-project / mobius

Mobius is an AI infrastructure platform for distributed online learning, including online sample processing, training and serving.
https://ray-project.github.io/mobius/
Apache License 2.0
85 stars 13 forks source link

Add format script #31

Closed BalaBalaYi closed 2 years ago

BalaBalaYi commented 2 years ago

Add a 'format.sh' to format shell, c++, python, java files.

ashione commented 2 years ago

Thanks for contributing CI/CD format tools. It would be better to add tutorial for other devs or contributors.

ashione commented 2 years ago

I has one suggestion about code lint. How to execute format.sh and show diff in git diff > diff.txt, and check whether diff.txt is empty. Non-empty diff content means changes have no lint problems.

Any thoughts about that? @jovany-wang

jovany-wang commented 2 years ago

It seems like what we did in Ray repo https://github.com/ray-project/ray/blob/master/ci/travis/check-git-clang-format-output.sh