Skip to content

Commit

Permalink
Updated tox and dependencies (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 committed Dec 13, 2019
1 parent 6c296c0 commit b48232f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 127 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ install:
- pip install -U tox coverage==4.0.3 coveralls==1.8.2

script:
- pipenv install --dev
- pipenv run pip freeze > requirements-tests.txt
- coverage erase
- tox
after_success:
Expand Down
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pytest-cov = "*"
pylint = "*"
flake8 = "*"
tox = "*"
safety = "*"
bandit = "*"
mkdocs = "*"
lightstep = "==4.3.0"
Expand Down
29 changes: 7 additions & 22 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 0 additions & 93 deletions requirements-tests.txt

This file was deleted.

21 changes: 12 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
envlist = py36,pylint,flake8,safety,bandit,docs

[testenv]
deps = -rrequirements-tests.txt
commands =
deps = pipenv
commands_pre=
pipenv install --dev --ignore-pipfile
commands=
pytest --cov=pyms --cov=tests tests/
install_command =
pip install {opts} {packages}

[testenv:py36]
basepython = python3.6
[testenv:py37]
Expand All @@ -16,16 +15,20 @@ basepython = python3.7
basepython = python3.5
[testenv:bandit]
basepython = python3.6
commands = bandit -r pyms/
commands =
bandit -r pyms/
[testenv:safety]
basepython = python3.6
commands = safety check -r requirements-tests.txt
commands =
pipenv check -vvvv
[testenv:pylint]
basepython = python3.6
commands = pylint --rcfile={toxinidir}/pylintrc {toxinidir}/pyms
commands =
pylint --rcfile={toxinidir}/pylintrc {toxinidir}/pyms
[testenv:flake8]
basepython = python3.6
commands = flake8 --ignore=E501 {toxinidir}/pyms
commands =
flake8 --ignore=E501 {toxinidir}/pyms
[testenv:docs]
basepython = python3.6
skipsdist = True
Expand Down

0 comments on commit b48232f

Please sign in to comment.