.pre-commit-config.yaml 926 字节
Newer Older
W
wuzewu 已提交
1
-   repo: local
W
wuzewu 已提交
2 3
    hooks:
    -   id: yapf
W
wuzewu 已提交
4 5 6 7
        name: yapf
        entry: yapf
        language: system
        args: [-i, --style .style.yapf]
W
wuzewu 已提交
8 9 10 11 12 13 14 15 16 17 18
        files: \.py$

-   repo: https://github.com/pre-commit/pre-commit-hooks
    sha: a11d9314b22d8f8c7556443875b731ef05965464
    hooks:
    -   id: check-merge-conflict
    -   id: check-symlinks
    -   id: end-of-file-fixer
    -   id: trailing-whitespace
    -   id: detect-private-key
    -   id: check-symlinks
Z
Zeyu Chen 已提交
19
    -   id: check-added-large-files
Z
Zeyu Chen 已提交
20

W
wuzewu 已提交
21 22 23 24 25 26 27 28 29 30 31 32
-   repo: local
    hooks:
    -   id: flake8
        name: flake8
        entry: flake8
        language: system
        args:
        -   --count
        -   --select=E9,F63,F7,F82
        -   --show-source
        -   --statistics
        files: \.py$
K
KP 已提交
33 34 35 36 37 38

-   repo: https://github.com/asottile/reorder_python_imports
    rev: v2.4.0
    hooks:
      - id: reorder-python-imports
        exclude: (?=third_party).*(\.py)$