.pre-commit-config.yaml 952 Bytes
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
31
32
33
34
35
      - id: mixed-line-ending
        args: ["--fix=lf"]
  - repo: https://github.com/myint/docformatter
    rev: v1.3.1
    hooks:
      - id: docformatter
        args: ["--in-place", "--wrap-descriptions", "79"]