diff options
author | Alex <shaftoe@users.noreply.github.com> | 2020-06-17 12:25:54 +0300 |
---|---|---|
committer | Alex <shaftoe@users.noreply.github.com> | 2020-07-02 17:12:46 +0300 |
commit | b20814e49367e43f3f269472ee16f18cee0b5376 (patch) | |
tree | 7aac320e290a2de4659d337f63c07a9511429c03 /.pre-commit-config.yaml | |
parent | a5d1e629e32c7af5b702fdf25c1a4a5b30df34e6 (diff) |
Add clang_format_wrapper.py to avoid CI/CD race conditions
- use tools/clang_format_wrapper.py to execute git-clang-format
- fix minor formatting issues in .pre-commit-config.yam
- enable verbose for clang-format pre-commit plugin
- add types to black pre-commit plugin
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 432e46066b..2d17748bee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,7 +78,7 @@ repos: hooks: - id: clang-format name: clang-format - entry: git clang-format + entry: tools/clang_format_wrapper.py require_serial: true stages: - commit @@ -87,16 +87,17 @@ repos: 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: - - id: black - files: ^tools/.*$ -- repo: https://gitlab.com/pycqa/flake8 - rev: '3.8.3' - hooks: - - id: flake8 - files: ^tools/.*$ +- repo: https://github.com/psf/black + rev: stable + hooks: + - id: black + files: ^tools/.*$ +- repo: https://gitlab.com/pycqa/flake8 + rev: '3.8.3' + hooks: + - id: flake8 + files: ^tools/.*$ + types: [text, python] - repo: local hooks: - id: qsscheck |