ray-project / kuberay

A toolkit to run Ray applications on Kubernetes
Apache License 2.0
974 stars 330 forks source link

[1/N][Chore] Add pre-commit hooks #2127

Closed MortalHappiness closed 1 month ago

MortalHappiness commented 1 month ago

Why are these changes needed?

Add pre-commit hooks supports so that developers can know format errors without running the CI.

Reference: https://github.com/nginxinc/nginx-gateway-fabric/blob/0b0f7111364cd6f06883e414f7ef118207ee7677/.pre-commit-config.yaml

Related issue number

N/A

Checks

kevin85421 commented 1 month ago

I tried it locally by adding trailing whitespaces in a YAML file. It works. Niceeeeee!