Skip to content

Commit

Permalink
enhancement: make possible to run tests and related stuff using tox
Browse files Browse the repository at this point in the history
Make possible to run tests (python setup.py test) and other related
stuff (flake8, doc8 and yamllint) using tox.

Signed-off-by: Satoru SATOH <satoru.satoh@gmail.com>
  • Loading branch information
ssato committed Sep 3, 2020
1 parent 29d2b50 commit 1c618fd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pathspec >= 0.5.3
pyyaml
2 changes: 2 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flake8
doc8
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tox]
envlist = py27, py34, py35, py36, py37, py38

[testenv]
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/tests/requirements.txt

setenv =
PATH = {toxworkdir}/bin{:}{env:PATH}

commands =
flake8 .
/bin/sh -c 'doc8 `git ls-files *.rst`'
/bin/sh -c 'yamllint --strict `git ls-files *.yaml *.yml`'
python setup.py test

# vim:sw=4:ts=4:et:

0 comments on commit 1c618fd

Please sign in to comment.