Skip to content

Commit

Permalink
Automate flake8 testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtolson committed Oct 30, 2015
1 parent e62cb7f commit 650f7ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ install:
- pip install -r requirements.txt
- bash tests/make_isis_env.sh

before_script:
- flake8 pysis

script: ISISROOT=/tmp/pysis/isis py.test tests
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py26, py27, py33, py34, py35
envlist = py26, py27, py33, py34, py35, flake8

[testenv]
setenv =
Expand All @@ -9,7 +9,10 @@ commands = py.test tests
deps =
-r{toxinidir}/requirements.txt

[testenv:flake8]
commands = flake8 pysis

[flake8]
max-line-length = 80
max-line-length = 100
exclude = tests/*
max-complexity = 10

0 comments on commit 650f7ce

Please sign in to comment.