tesseract-robotics / tesseract

Motion Planning Environment
http://tesseract-docs.rtfd.io
Other
257 stars 89 forks source link

Add pre-commit for code formatting #996

Open johnwason opened 6 months ago

johnwason commented 6 months ago

I configured pre-commit and adjusted the GitHub Action to run instead of the shell scripts for code formatting. pre-commit offers many more checks so quite a few changes are suggested. I did not commit any of the suggested changes.

pre-commit can be run from the command line using:

python3 -m pre_commit run --all

See https://pre-commit.com/

The pre-commit action output will show the changes made by the formatters.