PCGao/MatchAnything
0
1# To use:2#3# pre-commit run -a4#5# Or:6#7# pre-commit run --all-files8#9# Or:10#11# pre-commit install # (runs every time you commit in git)12#13# To update this file:14#15# pre-commit autoupdate16#17# See https://github.com/pre-commit/pre-commit18 19ci:20 autoupdate_commit_msg: "chore: update pre-commit hooks"21 autofix_commit_msg: "style: pre-commit fixes"22 23repos:24# Standard hooks25- repo: https://github.com/pre-commit/pre-commit-hooks26 rev: v5.0.027 hooks:28 - id: check-added-large-files29 exclude: ^imcui/third_party/30 - id: check-case-conflict31 exclude: ^imcui/third_party/32 - id: check-merge-conflict33 exclude: ^imcui/third_party/34 - id: check-symlinks35 exclude: ^imcui/third_party/36 - id: check-yaml37 exclude: ^imcui/third_party/38 - id: debug-statements39 exclude: ^imcui/third_party/40 - id: end-of-file-fixer41 exclude: ^imcui/third_party/42 - id: mixed-line-ending43 exclude: ^imcui/third_party/44 - id: requirements-txt-fixer45 exclude: ^imcui/third_party/46 - id: trailing-whitespace47 exclude: ^imcui/third_party/48 49- repo: https://github.com/astral-sh/ruff-pre-commit50 rev: "v0.8.4"51 hooks:52 - id: ruff53 args: ["--fix", "--show-fixes", "--extend-ignore=E402"]54 - id: ruff-format55 exclude: ^(docs|imcui/third_party/)56 57# Checking static types58- repo: https://github.com/pre-commit/mirrors-mypy59 rev: "v1.14.0"60 hooks:61 - id: mypy62 files: "setup.py"63 args: []64 additional_dependencies: [types-setuptools]65 exclude: ^imcui/third_party/66# Changes tabs to spaces67- repo: https://github.com/Lucas-C/pre-commit-hooks68 rev: v1.5.569 hooks:70 - id: remove-tabs71 exclude: ^(docs|imcui/third_party/)72 73# CMake formatting74- repo: https://github.com/cheshirekow/cmake-format-precommit75 rev: v0.6.1376 hooks:77 - id: cmake-format78 additional_dependencies: [pyyaml]79 types: [file]80 files: (\.cmake|CMakeLists.txt)(.in)?$81 exclude: ^imcui/third_party/82 83# Suggested hook if you add a .clang-format file84- repo: https://github.com/pre-commit/mirrors-clang-format85 rev: v13.0.086 hooks:87 - id: clang-format88 exclude: ^imcui/third_party/89 