Skip to content

Commit

Permalink
setup: add support for tox
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo committed Sep 7, 2018
1 parent 629ea6f commit 1e4c2fb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
license='MIT',
packages=find_packages(),
extras_require={
"dev": ["pytest"],
"dev": ["pytest", "tox"],
"lint": ["black"],
},
include_package_data=True,
Expand Down
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[tox]
envlist = py27,py34,py35,py36,lint
[testenv]
extras = dev
commands=
pytest

[testenv:lint]
basepython = python3.6
extras = dev, lint
commands =
black --check --verbose paginate

0 comments on commit 1e4c2fb

Please sign in to comment.