提交 677c7bfd 编写于 作者: W wuzewu

Add flake8 check in pre-commit

上级 4a8aebe2
......@@ -18,6 +18,19 @@
- id: check-symlinks
- id: check-added-large-files
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
args:
- --count
- --select=E9,F63,F7,F82
- --show-source
- --statistics
files: \.py$
- repo: local
hooks:
- id: copyright_checker
......
language: python
before_install: pip install flake8
before_script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
python:
- '2.7'
- '3.5'
- '3.6'
- '3.7'
script: /bin/bash ./scripts/check_code_style.sh
......
......@@ -9,3 +9,4 @@ six >= 1.10.0
chardet == 3.0.4
requests
pandas
flake8
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册