aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.flake87
-rw-r--r--.travis.yml13
2 files changed, 18 insertions, 2 deletions
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..b4d95b8
--- /dev/null
+++ b/.flake8
@@ -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"