update CI config and pre-commit hook config (#228)

pull/231/head
Kai Chen 2020-04-08 00:04:50 +08:00 committed by GitHub
parent 25a21d7b2b
commit 728b88dfdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -26,3 +26,5 @@ repos:
- id: double-quote-string-fixer
- id: fix-encoding-pragma
args: ["--remove"]
- id: mixed-line-ending
args: ["--fix=lf"]

View File

@ -26,8 +26,8 @@ python:
before_script:
- pip install codecov flake8 yapf isort
- flake8
- isort -rc --diff mmcv/ tests/ examples/
- flake8 .
- isort -rc --check-only --diff mmcv/ tests/ examples/
- yapf -r -d mmcv/ tests/ examples/
script: coverage run --source=mmcv setup.py test