/ .pre-commit-config.yaml
.pre-commit-config.yaml
 1  repos:
 2    # Standard hooks
 3    - repo: https://github.com/pre-commit/pre-commit-hooks
 4      rev: v3.4.0
 5      hooks:
 6        - id: check-added-large-files
 7        - id: check-ast
 8        - id: check-case-conflict
 9        - id: check-docstring-first
10        - id: check-merge-conflict
11        - id: check-symlinks
12        - id: check-xml
13        - id: check-yaml
14        - id: debug-statements
15        - id: end-of-file-fixer
16        - id: mixed-line-ending
17        - id: trailing-whitespace
18        - id: check-byte-order-marker  # Forbid UTF-8 byte-order markers
19  
20    # Python
21    - repo: https://github.com/pycqa/flake8
22      rev: '88a4f9b2f48fc44b025a48fa6a8ac7cc89ef70e0'  # 7.0.0
23      hooks:
24      -   id: flake8
25  
26    - repo: https://github.com/psf/black.git
27      rev: '6fdf8a4af28071ed1d079c01122b34c5d587207a' # 24.2.0
28      hooks:
29      -   id: black
30  
31    - repo: https://github.com/pre-commit/mirrors-mypy
32      rev: '9db9854e3041219b1eb619872a2dfaf58adfb20b'  # v1.9.0
33      hooks:
34      -   id: mypy
35  
36    # C++
37    - repo: local
38      hooks:
39        - id: clang-format
40          name: clang-format
41          description: Format files with ClangFormat.
42          entry: clang-format
43          language: system
44          files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
45          args: ['-fallback-style=none', '-i']