Skip to content

Commit

Permalink
pre-commit: include clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed Aug 25, 2020
1 parent ca7056d commit 7593782
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ repos:
rev: master
hooks:
- id: markdownlint
- repo: git://github.com/doublify/pre-commit-clang-format
rev: master
hooks:
- id: clang-format
args: ['--style=llvm']
exclude: >-
(?x)^(
tools/manual/collapsibleList.js|
tools/manual/toggle_folding.js|
)$
- repo: local
hooks:
- id: doxify
Expand Down
3 changes: 2 additions & 1 deletion tools/docker/scripts/install_formatting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ apt-get install -qq --no-install-recommends \
make \
perl \
python3-{pip,setuptools,wheel,dev} \
nodejs
nodejs \
clang-format

rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 7593782

Please sign in to comment.