Skip to content

Commit

Permalink
Add lint checks to tox and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
moggers87 committed May 25, 2018
1 parent f7e17b7 commit add91a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ matrix:
env: TOX_ENV=docs
install: pip install tox
script: tox -e $TOX_ENV
- python: "2.7"
env: TOX_ENV=lint
install: pip install tox
script: tox -e $TOX_ENV

install:
- travis_retry pip install -e .
Expand Down
18 changes: 16 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[tox]
envlist = docs
envlist =
docs
lint

[testenv:docs]
basepython=python
Expand All @@ -11,6 +13,18 @@ deps=
mock
nose

[testenv:lint]
basepython=python
commands=flake8 salmon tests setup.py
deps=flake8

[flake8]
max-line-length = 120
exclude = .git,env,build,docs/conf.py
exclude =
.eggs
.git
.tox
__pycache__
build
docs
env

0 comments on commit add91a6

Please sign in to comment.