diff options
-rw-r--r-- | .flake8 | 7 | ||||
-rw-r--r-- | .travis.yml | 13 |
2 files changed, 18 insertions, 2 deletions
@@ -0,0 +1,7 @@ +[flake8] +select = E901,E999,F821,F822,F823 +count = True +max-complexity = 10 +max-line-length = 120 +show-source = True +statistics = True diff --git a/.travis.yml b/.travis.yml index 6739e1c..a163da4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,19 @@ language: python python: - "2.7" +cache: pip + install: - - 'pip install websocket-client pytest' + - pip install flake8 pytest websocket-client + +before_script: + # stop the build if there are Python syntax errors or undefined names + - flake8 . + # exit-zero treats all errors as warnings. + - flake8 . --exit-zero --select=C,E,F,W -script: python -m pytest +script: + - python -m pytest notifications: irc: "chat.freenode.net#wee-slack-dev" |