.pre-commit-config.yaml 730 字节
Newer Older
S
Superjom 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
-   repo: https://github.com/pre-commit/mirrors-yapf.git
    sha: v0.16.0
    hooks:
    -   id: yapf
        files: \.py$

-   repo: https://github.com/pre-commit/pre-commit-hooks
    sha: a11d9314b22d8f8c7556443875b731ef05965464
    hooks:
    -   id: check-merge-conflict
    -   id: check-symlinks
    -   id: end-of-file-fixer
    -   id: trailing-whitespace
S
superjom 已提交
14 15 16 17 18 19 20 21 22 23 24 25
    -   id: detect-private-key
    -   id: check-symlinks
    -   id: check-added-large-files

-   repo: local
    hooks:
    -   id: clang-format-with-version-check
        name: clang-format
        description: Format files with ClangFormat.
        entry: bash ./.clang_format.hook -i
        language: system
        files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto)$