summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-03-26 18:54:00 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-03-26 18:54:00 +0100
commit3bef0d0154283919d58ca8f71b43ac3834d47219 (patch)
treed56e3c58728567d6965a49c453dcbb15b02bb29f /.pre-commit-config.yaml
parent78a64741efa6ad6d0e4666b9d73f3b6d8a38d03e (diff)
pre-commit: Install clang-format dependency automatically
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0884f0e343..cf9b7c4108 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -71,16 +71,19 @@ repos:
stages:
- commit
- manual
-- repo: git://github.com/doublify/pre-commit-clang-format
- rev: master
+- repo: local
hooks:
- id: clang-format
+ name: clang-format
entry: git clang-format
- args: []
require_serial: true
stages:
- commit
- manual
+ language: python
+ files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|mm|proto|vert)$
+ additional_dependencies:
+ - clang-format
- repo: https://github.com/psf/black
rev: stable
hooks: