Upgrading to GitLab 12.1.0.

Commit ac20f550 authored by Simo Sorce's avatar Simo Sorce

Use tox to run pylint and add to it travis CI

pylint becomes part of the tests that need to pass on travis CI
Signed-off-by: 's avatarSimo Sorce <simo@redhat.com>
Closes #36
parent e4a7c409
......@@ -14,6 +14,7 @@ script:
- tox
env:
- TOXENV=lint
- TOXENV=py27
- TOXENV=py34
- TOXENV=doc
......
......@@ -2,18 +2,12 @@ all: lint pep8 docs test
echo "All tests passed"
lint:
# Analyze code
# don't show recommendations, info, comments, report
# W0613 - unused argument
# Ignore cherrypy class members as they are dynamically added
pylint -d c,r,i,W0613 -r n -f colorized \
--notes= \
--disable=star-args \
./jwcrypto
# Pylint checks
tox -e lint
pep8:
# Check style consistency
pep8 jwcrypto
tox -e pep8
clean:
rm -fr build dist *.egg-info
......@@ -24,7 +18,8 @@ cscope:
test:
rm -f .coverage
nosetests -s
tox -e py27
tox -e py34
DOCS_DIR = docs
.PHONY: docs
......
......@@ -2,14 +2,26 @@
envlist = py27,py34,doc,sphinx
[testenv]
setenv =
PYTHONPATH = {envsitepackagesdir}
deps =
pytest
coverage
-r{toxinidir}/requirements.txt
sitepackages = True
commands =
coverage run -m pytest --capture=no --strict {posargs}
coverage report -m
[testenv:lint]
basepython = python2.7
deps =
pylint
-r{toxinidir}/requirements.txt
sitepackages = True
commands =
pylint -d c,r,i,W0613 -r n -f colorized --notes= --disable=star-args ./jwcrypto
[testenv:pep8]
basepython = python2.7
deps =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment