Skip to content

Commit

Permalink
Add flake8 in tox and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
NotSqrt committed Dec 19, 2016
1 parent cbbdea8 commit 20c4d60
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ python:
- 3.5

install:
- pip install coveralls -e .
- pip install coveralls flake8 -e .

before_script:
- flake8 --ignore=E501 mattermost_gitlab tests

script:
- coverage run --source=mattermost_gitlab,tests tests/test.py
Expand Down
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
[tox]
minversion=1.8.0
envlist =
py27,
py33,
py34,
py35,
{py27,py33,py34,py35}-test
{py27,py35}-flake8

[testenv]
commands = coverage run --source=mattermost_gitlab,tests tests/test.py
commands =
test: coverage run --source=mattermost_gitlab,tests tests/test.py
flake8: flake8 --ignore=E501 mattermost_gitlab tests
deps =
coverage
test: coverage
flake8: flake8>=2.0,<3.0

0 comments on commit 20c4d60

Please sign in to comment.