.pre-commit-config.yaml 706 Bytes
Newer Older
zhangwenwei's avatar
zhangwenwei committed
1
2
3
4
5
6
7
8
9
10
11
12
repos:
  - repo: https://gitlab.com/pycqa/flake8.git
    rev: 3.7.9
    hooks:
      - id: flake8
  - repo: https://github.com/asottile/seed-isort-config
    rev: v2.1.0
    hooks:
      - id: seed-isort-config
  - repo: https://github.com/timothycrosley/isort
    rev: 4.3.21
    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
    hooks:
      - id: yapf
zhangwenwei's avatar
zhangwenwei committed
18

zhangwenwei's avatar
zhangwenwei committed
19
20
21
22
23
24
25
26
27
28
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.5.0
    hooks:
      - id: trailing-whitespace
      - id: check-yaml
      - id: end-of-file-fixer
      - id: requirements-txt-fixer
      - id: double-quote-string-fixer
      - id: fix-encoding-pragma
        args: ["--remove"]