Skip to content

Commit

Permalink
Run flake8 on Travis CI and tox
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Feb 7, 2019
1 parent aa2df0a commit 6fb0481
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
@@ -1,2 +1,5 @@
[bdist_wheel]
universal = 1

[flake8]
doctests = yes
7 changes: 6 additions & 1 deletion 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 =
Expand All @@ -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

0 comments on commit 6fb0481

Please sign in to comment.