cmake-format-precommit
cmake-format-precommit copied to clipboard
pre-commit hooks specification for cmake-format
This hook was failing due to a ModuleNotFoundError: No module named 'yaml'. I have updated the setup config to add pyyaml>=5.1, fixing that error. Before:  After: 
Some commands seem to require it, i.e. https://github.com/cheshirekow/cmake_format/blob/eff5df1f41c665ea7cac799396042e4f406ef09a/cmakelang/format/__main__.py#L208-L220 These should be included in this precommit package
Because I was astonished when realized that cmake-format doesn't work anymore after adding arguments Something like that ``` args: - --line-width=119 - --tab-size=4 ```