jbampton commented on pull request #3624: URL: https://github.com/apache/apisix/pull/3624#issuecomment-782984453
This feature is very useful since it runs on your local machine when you do the commit and it runs very fast and gives immediate feedback to you so you don't have to wait for the CI to run before you get feedback. Also this pre-commit framework automatically fixes a lot of the problems in the codebase for example it runs `black` on Python files and it fixes `trailing whitespace`. It also fixes `end of files` or makes sure each file has a single blank line at the end. It also fixes mixed line endings converting to `lf`. There are many other checks and they are all useful and most of these tests we don't even have on the CI. Pre-commit automatically fixes code for you so it speeds up development. Most of the top GitHub projects are using pre-commit even Apache Airflow. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
