.pre-commit-config.yaml 1.43 KB
Newer Older
lizz's avatar
lizz committed
1
exclude: ^tests/data/
Kai Chen's avatar
Kai Chen committed
2
repos:
Wenwei Zhang's avatar
Wenwei Zhang committed
3
  - repo: https://gitlab.com/pycqa/flake8.git
4
    rev: 3.8.3
Wenwei Zhang's avatar
Wenwei Zhang committed
5
6
7
    hooks:
      - id: flake8
  - repo: https://github.com/asottile/seed-isort-config
8
    rev: v2.2.0
Wenwei Zhang's avatar
Wenwei Zhang committed
9
10
11
12
13
    hooks:
      - id: seed-isort-config
  - repo: https://github.com/timothycrosley/isort
    rev: 4.3.21
    hooks:
lizz's avatar
lizz committed
14
      - id: isort
Wenwei Zhang's avatar
Wenwei Zhang committed
15
  - repo: https://github.com/pre-commit/mirrors-yapf
16
    rev: v0.30.0
Wenwei Zhang's avatar
Wenwei Zhang committed
17
18
19
    hooks:
      - id: yapf
  - repo: https://github.com/pre-commit/pre-commit-hooks
20
    rev: v3.1.0
Wenwei Zhang's avatar
Wenwei Zhang committed
21
22
23
24
25
26
    hooks:
      - id: trailing-whitespace
      - id: check-yaml
      - id: end-of-file-fixer
      - id: requirements-txt-fixer
      - id: double-quote-string-fixer
27
      - id: check-merge-conflict
Wenwei Zhang's avatar
Wenwei Zhang committed
28
29
30
31
      - id: fix-encoding-pragma
        args: ["--remove"]
      - id: mixed-line-ending
        args: ["--fix=lf"]
Kai Chen's avatar
Kai Chen committed
32
33
34
35
  - repo: https://github.com/jumanjihouse/pre-commit-hooks
    rev: 2.1.4
    hooks:
      - id: markdownlint
36
37
        args: ["-r", "~MD002,~MD013,~MD029,~MD033,~MD034",
              "-t", "allow_different_nesting"]
Kai Chen's avatar
Kai Chen committed
38
39
40
41
42
  - repo: https://github.com/myint/docformatter
    rev: v1.3.1
    hooks:
      - id: docformatter
        args: ["--in-place", "--wrap-descriptions", "79"]
Kai Chen's avatar
Kai Chen committed
43
44
45
46
47
48
49
50
  # - repo: local
  #   hooks:
  #     - id: clang-format
  #       name: clang-format
  #       description: Format files with ClangFormat
  #       entry: clang-format -style=google -i
  #       language: system
  #       files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$