.pre-commit-config.yaml 784 Bytes
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.0
Wenwei Zhang's avatar
Wenwei Zhang committed
5
6
7
8
9
10
11
12
13
    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:
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
20
21
22
23
24
25
26
27
28
29
30
    hooks:
      - id: yapf
  - 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"]
      - id: mixed-line-ending
        args: ["--fix=lf"]