.pre-commit-config.yaml 1.51 KB
Newer Older
zhangwenwei's avatar
zhangwenwei committed
1
2
repos:
  - repo: https://gitlab.com/pycqa/flake8.git
zhangwenwei's avatar
zhangwenwei committed
3
    rev: 3.8.3
zhangwenwei's avatar
zhangwenwei committed
4
5
6
    hooks:
      - id: flake8
  - repo: https://github.com/asottile/seed-isort-config
zhangwenwei's avatar
zhangwenwei committed
7
    rev: v2.2.0
zhangwenwei's avatar
zhangwenwei committed
8
9
10
    hooks:
      - id: seed-isort-config
  - repo: https://github.com/timothycrosley/isort
zhangwenwei's avatar
zhangwenwei committed
11
    rev: 5.0.2
zhangwenwei's avatar
zhangwenwei committed
12
    hooks:
zhangwenwei's avatar
zhangwenwei committed
13
      - id: isort
zhangwenwei's avatar
zhangwenwei committed
14
  - repo: https://github.com/pre-commit/mirrors-yapf
wuyuefeng's avatar
wuyuefeng committed
15
    rev: v0.30.0
zhangwenwei's avatar
zhangwenwei committed
16
17
18
    hooks:
      - id: yapf
  - repo: https://github.com/pre-commit/pre-commit-hooks
zhangwenwei's avatar
zhangwenwei committed
19
    rev: v3.1.0
zhangwenwei's avatar
zhangwenwei committed
20
21
22
23
24
25
    hooks:
      - id: trailing-whitespace
      - id: check-yaml
      - id: end-of-file-fixer
      - id: requirements-txt-fixer
      - id: double-quote-string-fixer
26
      - id: check-merge-conflict
zhangwenwei's avatar
zhangwenwei committed
27
28
      - id: fix-encoding-pragma
        args: ["--remove"]
zhangwenwei's avatar
zhangwenwei committed
29
30
      - id: mixed-line-ending
        args: ["--fix=lf"]
31
32
33
34
35
36
37
38
39
40
  - repo: https://github.com/markdownlint/markdownlint
    rev: v0.11.0
    hooks:
      - id: markdownlint
        args: ["-r", "~MD002,~MD013,~MD029,~MD033,~MD034",
              "-t", "allow_different_nesting"]
  - repo: https://github.com/codespell-project/codespell
    rev: v2.1.0
    hooks:
      - id: codespell
zhangwenwei's avatar
zhangwenwei committed
41
42
43
44
45
  - repo: https://github.com/myint/docformatter
    rev: v1.3.1
    hooks:
      - id: docformatter
        args: ["--in-place", "--wrap-descriptions", "79"]
46
47
48
49
50
51
  - repo: https://github.com/open-mmlab/pre-commit-hooks
    rev: master  # Use the ref you want to point at
    hooks:
      - id: check-algo-readme
      - id: check-copyright
        args: ["mmdet3d"]  # replace the dir_to_check with your expected directory to check