|
| 1 | +exclude: ^dependencies/(spirv|vulkan)/ |
| 2 | + |
| 3 | +repos: |
| 4 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + rev: v6.0.0 |
| 6 | + hooks: |
| 7 | + - id: check-added-large-files |
| 8 | + - id: check-case-conflict |
| 9 | + - id: check-executables-have-shebangs |
| 10 | + - id: check-json |
| 11 | + exclude: ^\.devcontainer/ |
| 12 | + - id: check-merge-conflict |
| 13 | + - id: check-shebang-scripts-are-executable |
| 14 | + - id: check-symlinks |
| 15 | + - id: check-yaml |
| 16 | + args: [ --allow-multiple-documents ] |
| 17 | + - id: destroyed-symlinks |
| 18 | + - id: end-of-file-fixer |
| 19 | + exclude: \.patch$ |
| 20 | + - id: fix-byte-order-marker |
| 21 | + - id: mixed-line-ending |
| 22 | + - id: no-commit-to-branch |
| 23 | + - id: trailing-whitespace |
| 24 | + args: [ --markdown-linebreak-ext=md ] |
| 25 | + exclude: \.patch$ |
| 26 | + |
| 27 | + - repo: https://github.com/rhysd/actionlint |
| 28 | + rev: v1.7.11 |
| 29 | + hooks: |
| 30 | + - id: actionlint |
| 31 | + |
| 32 | + - repo: https://github.com/pre-commit/mirrors-clang-format |
| 33 | + rev: v21.1.8 |
| 34 | + hooks: |
| 35 | + - id: clang-format |
| 36 | + args: [ --sort-includes ] |
| 37 | + types_or: [ c, c++, objective-c, json ] |
| 38 | + exclude: | |
| 39 | + (?x)( |
| 40 | + ^tutorial/ |
| 41 | + | ^src/runtime/hexagon_remote/bin/src/ |
| 42 | + | ^src/runtime/mini_webgpu\.h$ |
| 43 | + | ^src/runtime/mini_d3d12\.h$ |
| 44 | + | ^src/runtime/vulkan_context\.h$ |
| 45 | + | \.fbs\.h$ |
| 46 | + | ^\.devcontainer/ |
| 47 | + | \.xcassets/ |
| 48 | + ) |
| 49 | +
|
| 50 | + - repo: https://github.com/gitleaks/gitleaks |
| 51 | + rev: v8.9.0 |
| 52 | + hooks: |
| 53 | + - id: gitleaks |
| 54 | + |
| 55 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 56 | + rev: v0.15.5 |
| 57 | + hooks: |
| 58 | + - id: ruff-check |
| 59 | + - id: ruff-format |
| 60 | + |
| 61 | + - repo: https://github.com/ComPWA/taplo-pre-commit |
| 62 | + rev: v0.9.3 |
| 63 | + hooks: |
| 64 | + - id: taplo-format |
| 65 | + |
| 66 | + - repo: local |
| 67 | + hooks: |
| 68 | + - id: check-cmake-file-lists |
| 69 | + name: check CMake file lists |
| 70 | + entry: python tools/check_cmake_file_lists.py |
| 71 | + language: system |
| 72 | + files: ^test/.*CMakeLists\.txt$ |
| 73 | + |
| 74 | + - id: uv-lock |
| 75 | + name: check uv.lock is up to date |
| 76 | + entry: uv lock --check |
| 77 | + language: system |
| 78 | + pass_filenames: false |
| 79 | + files: ^(pyproject\.toml|uv\.lock)$ |
0 commit comments