Unverified Commit 728b88df authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

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

parent 25a21d7b
...@@ -26,3 +26,5 @@ repos: ...@@ -26,3 +26,5 @@ repos:
- id: double-quote-string-fixer - id: double-quote-string-fixer
- id: fix-encoding-pragma - id: fix-encoding-pragma
args: ["--remove"] args: ["--remove"]
- id: mixed-line-ending
args: ["--fix=lf"]
...@@ -26,8 +26,8 @@ python: ...@@ -26,8 +26,8 @@ python:
before_script: before_script:
- pip install codecov flake8 yapf isort - pip install codecov flake8 yapf isort
- flake8 - flake8 .
- isort -rc --diff mmcv/ tests/ examples/ - isort -rc --check-only --diff mmcv/ tests/ examples/
- yapf -r -d mmcv/ tests/ examples/ - yapf -r -d mmcv/ tests/ examples/
script: coverage run --source=mmcv setup.py test script: coverage run --source=mmcv setup.py test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment