diff --git a/.cmake-format.py b/.cmake-format.py new file mode 100644 index 0000000..b07f84d --- /dev/null +++ b/.cmake-format.py @@ -0,0 +1,3 @@ +with section("format"): + max_pargs_hwrap = 2 + dangle_parens = True diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd56f2b..1fbe21e 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,6 +41,12 @@ repos: - id: clang-format exclude: '\.json$' + # CMake hooks + - repo: https://github.com/cheshirekow/cmake-format-precommit + rev: v0.6.13 + hooks: + - id: cmake-format + - repo: https://github.com/codespell-project/codespell rev: v2.1.0 hooks: