bobfang1992 / pytomlpp

A python wrapper for tomlplusplus

Home Page:https://bobfang1992.github.io/pytomlpp/pytomlpp.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup automated clang-format

bobfang1992 opened this issue · comments

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.

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

Closed via df5845e