|
| 1 | +--- |
| 2 | +exclude: |
| 3 | + (?x)^( |
| 4 | + configure\..*| |
| 5 | + .cache/.* |
| 6 | + )$ |
| 7 | +repos: |
| 8 | + - repo: https://github.com/executablebooks/mdformat |
| 9 | + # Do this before other tools "fixing" the line endings |
| 10 | + rev: 0.7.17 |
| 11 | + hooks: |
| 12 | + - id: mdformat |
| 13 | + name: Format Markdown |
| 14 | + stages: [manual] |
| 15 | + entry: mdformat # Executable to run, with fixed options |
| 16 | + language: python |
| 17 | + types: [markdown] |
| 18 | + args: [--wrap, '75', --number] |
| 19 | + additional_dependencies: |
| 20 | + - mdformat-toc |
| 21 | + - mdformat-gfm |
| 22 | + - mdformat-beautysh |
| 23 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 24 | + rev: v4.6.0 |
| 25 | + hooks: |
| 26 | + # - id: no-commit-to-branch |
| 27 | + # args: [--branch, main] |
| 28 | + - id: debug-statements |
| 29 | + - id: end-of-file-fixer |
| 30 | + exclude: ^(test/.*)$ |
| 31 | + - id: trailing-whitespace |
| 32 | + exclude: .*\.md$ |
| 33 | + - id: check-json |
| 34 | + - id: mixed-line-ending |
| 35 | + - id: check-builtin-literals |
| 36 | + args: [--ignore=dict] |
| 37 | + - id: check-ast |
| 38 | + - id: check-merge-conflict |
| 39 | + - id: check-executables-have-shebangs |
| 40 | + - id: check-shebang-scripts-are-executable |
| 41 | + exclude: ^(test/.*)$ |
| 42 | + - id: check-docstring-first |
| 43 | + - id: fix-byte-order-marker |
| 44 | + - id: check-case-conflict |
| 45 | + - id: check-toml |
| 46 | + - repo: https://github.com/lovesegfault/beautysh.git |
| 47 | + rev: v6.2.1 |
| 48 | + hooks: |
| 49 | + - id: beautysh |
| 50 | + exclude: ^(test/.*)$ |
| 51 | + additional_dependencies: |
| 52 | + - setuptools |
| 53 | + - repo: https://github.com/codespell-project/codespell |
| 54 | + rev: v2.3.0 |
| 55 | + hooks: |
| 56 | + - id: codespell |
| 57 | + args: |
| 58 | + - --toml |
| 59 | + - pyproject.toml |
| 60 | + additional_dependencies: |
| 61 | + - tomli |
| 62 | + - repo: https://github.com/pocc/pre-commit-hooks |
| 63 | + rev: v1.3.5 |
| 64 | + # Install dependencies on windows: |
| 65 | + # choco install llvm uncrustify cppcheck |
| 66 | + hooks: |
| 67 | + - id: uncrustify |
| 68 | + stages: [manual] |
| 69 | + args: [--replace, --no-backup, -c, uncrustify.cfg] |
| 70 | + - id: cppcheck |
| 71 | + args: |
| 72 | + - --force |
| 73 | + #- --std=c99 |
| 74 | + - --language=c |
| 75 | + #- -IInc |
| 76 | + - '--template={file}({line}): {severity} ({id}): {message}' |
| 77 | + - id: cpplint |
| 78 | + args: ["--filter=-build/header_guard,-build/include,-build/include_subdir,-legal/copyright,-readbility/casting,-readability/fn_size,-whitespace/blank_line,-whitespace/braces,-whitespace/comma,-whitespace/comments,-whitespace/line_length,-whitespace/newline,-whitespace/operators,-whitespace/parens,-whitespace/semicolon,-whitespace/tab,-whitespace/todo"] |
| 79 | + additional_dependencies: |
| 80 | + - cpplint>=1.6.1 |
| 81 | + - repo: https://github.com/shellcheck-py/shellcheck-py |
| 82 | + rev: v0.10.0.1 |
| 83 | + hooks: |
| 84 | + - id: shellcheck |
| 85 | + # args: [-x,-e1007,-e1009,-e1072,-e1073] |
| 86 | + - repo: https://github.com/pocc/pre-commit-hooks |
| 87 | + rev: v1.3.5 |
| 88 | + hooks: |
| 89 | + - id: clang-format |
| 90 | + stages: [manual] |
| 91 | + args: [-i] |
0 commit comments