Add pylint to travis
parent
da960b29da
commit
2051871c81
|
@ -3,8 +3,8 @@ python:
|
||||||
- "3.4"
|
- "3.4"
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install pep8
|
- pip install pep8 pylint
|
||||||
script:
|
script:
|
||||||
- pep8 homeassistant --exclude bower_components,external
|
- pep8 homeassistant --exclude bower_components,external
|
||||||
|
- pylint homeassistant
|
||||||
- python -m homeassistant -t test
|
- python -m homeassistant -t test
|
||||||
|
|
||||||
|
|
7
pylintrc
7
pylintrc
|
@ -1,7 +1,12 @@
|
||||||
[MASTER]
|
[MASTER]
|
||||||
ignore=external
|
ignore=external
|
||||||
|
reports=no
|
||||||
|
|
||||||
disable=locally-disabled,duplicate-code
|
# Reasons disabled:
|
||||||
|
# locally-disabled - it spams too much
|
||||||
|
# duplicate-code - unavoidable
|
||||||
|
# cyclic-import - doesn't test if both import on load
|
||||||
|
disable=locally-disabled,duplicate-code,cyclic-import
|
||||||
|
|
||||||
[EXCEPTIONS]
|
[EXCEPTIONS]
|
||||||
overgeneral-exceptions=Exception,HomeAssistantError
|
overgeneral-exceptions=Exception,HomeAssistantError
|
||||||
|
|
Loading…
Reference in New Issue