bobfang1992 / pytomlpp

A python wrapper for tomlplusplus
https://bobfang1992.github.io/pytomlpp/pytomlpp.html
MIT License
86 stars 10 forks source link

Setup automated clang-format #30

Closed bobfang1992 closed 4 years ago

bobfang1992 commented 4 years ago

I would like to use clang-format so we can have a consistent style for the long run. This should be automated, or at least we should have a .clang-format file which specifies this style. Maybe add a pre-commit hook to this? I would love to see some suggestions on this.

EpicWink commented 4 years ago

Usually it's easiest to check in CI if the code matches the style, and fail the job if linting fails. Here's a linting GitHub Action: https://github.com/marketplace/actions/clang-format-lint

bobfang1992 commented 4 years ago

Closed via df5845e8e0fcd117e2e43fc15680e74b2d130f3e