Skip to content

Commit

Permalink
pre-commit: format cmake-files
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed Oct 19, 2020
1 parent 24e8762 commit e8e1fe1
Show file tree
Hide file tree
Showing 10 changed files with 587 additions and 440 deletions.
3 changes: 3 additions & 0 deletions .cmake-format.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# flake8: noqa
with section("format"):
separate_ctrl_name_with_space = True
15 changes: 14 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,27 @@ repos:
rev: v0.3.6
hooks:
- id: fprettify
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
exclude: >-
(?x)^(
cmake/(CheckFortranSourceRuns|CompilerConfiguration|Find(BLAS|LAPACK)|GetGitRevisionDescription).cmake|
)$
- repo: local
hooks:
- id: check-header
name: check file headers
entry: ./.pre-commit/check_header.py --verbose
language: script
types: [text]
exclude: '^(tools|.cp2k)/'
exclude: >-
(?x)^(
tools/.*|
.cp2k/.*|
.cmake-format.py|
)$
- id: check-doxygen-tags
name: no doxygen tags present
entry: '^\s*!>'
Expand Down
Loading

0 comments on commit e8e1fe1

Please sign in to comment.