diff --git a/.travis.yml b/.travis.yml index 80e6fd7..8a43c47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,10 @@ matrix: - python: "3.7" dist: xenial sudo: true + - name: "flake8" + install: pip install flake8 + script: flake8 src setup.py + after_success: install: - pip install -U pip setuptools - pip install -U coverage coveralls diff --git a/setup.cfg b/setup.cfg index 2a9acf1..c1e4c65 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,5 @@ [bdist_wheel] universal = 1 + +[flake8] +doctests = yes diff --git a/tox.ini b/tox.ini index e9fb615..20efb09 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py27,py34,py35,py36,py37,pypy,pypy3,coverage,docs + flake8,py27,py34,py35,py36,py37,pypy,pypy3,coverage,docs [testenv] commands = @@ -24,3 +24,8 @@ commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html deps = .[docs] + +[testenv:flake8] +deps = flake8 +skipinstall = true +commands = flake8 setup.py src