.pre-commit-config.yaml 534 字节
Newer Older
sangshuduo's avatar
sangshuduo 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.3.0
    hooks:
      - id: check-yaml
      - id: check-json
      - id: end-of-file-fixer
      - id: trailing-whitespace

repos:
  - repo: https://github.com/psf/black
    rev: stable
    hooks:
      - id: black

repos:
  - repo: https://github.com/pocc/pre-commit-hooks
    rev: master
    hooks:
      - id: cppcheck
        args: ["--error-exitcode=0"]

repos:
  - repo: https://github.com/crate-ci/typos
25
    rev: v1.15.7
sangshuduo's avatar
sangshuduo 已提交
26
    hooks:
27
      - id: typos
sangshuduo's avatar
sangshuduo 已提交
28