different approach to running flake8

This commit is contained in:
Stefan Wojcik 2017-02-26 02:29:21 -05:00
parent 7850e47bf7
commit 97d9a7cf43
2 changed files with 3 additions and 10 deletions

View File

@ -50,7 +50,7 @@ install:
python-tk python-tk
- travis_retry pip install --upgrade pip - travis_retry pip install --upgrade pip
- travis_retry pip install coveralls - travis_retry pip install coveralls
- travis_retry pip install flake8 - travis_retry pip install flake8 flakse8-import-order
- travis_retry pip install tox>=1.9 - travis_retry pip install tox>=1.9
- travis_retry pip install "virtualenv<14.0.0" # virtualenv>=14.0.0 has dropped Python 3.2 support (and pypy3 is based on py32) - travis_retry pip install "virtualenv<14.0.0" # virtualenv>=14.0.0 has dropped Python 3.2 support (and pypy3 is based on py32)
- travis_retry tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- -e test - travis_retry tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- -e test
@ -60,7 +60,7 @@ cache: pip
# Run flake8 for py27 # Run flake8 for py27
before_script: before_script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then tox -e flake8; fi - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8 .; fi
script: script:
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage - tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = {py27,py35,pypy,pypy3}-{mg27,mg28,mg30},flake8 envlist = {py27,py35,pypy,pypy3}-{mg27,mg28,mg30}
[testenv] [testenv]
commands = commands =
@ -11,10 +11,3 @@ deps =
mg30: PyMongo>=3.0 mg30: PyMongo>=3.0
setenv = setenv =
PYTHON_EGG_CACHE = {envdir}/python-eggs PYTHON_EGG_CACHE = {envdir}/python-eggs
[testenv:flake8]
deps =
flake8
flake8-import-order
commands =
flake8