Merge pull request #219 from pylast/lint-python3

Lint Python 3
This commit is contained in:
Hugo 2017-09-19 12:58:12 +03:00 committed by GitHub
commit 485596d004
2 changed files with 16 additions and 2 deletions

View file

@ -16,9 +16,11 @@ env:
matrix: matrix:
include: include:
- python: 2.7 - python: 2.7
env: TOXENV=lint env: TOXENV=py2lint
- python: 2.7 - python: 2.7
env: TOXENV=py27 env: TOXENV=py27
- python: 3.6
env: TOXENV=py3lint
- python: 3.6 - python: 3.6
env: TOXENV=py36 env: TOXENV=py36
- python: 3.5 - python: 3.5

14
tox.ini
View file

@ -21,7 +21,7 @@ commands = py.test -v -s -W all --cov pylast --cov-report term-missing {posargs}
deps = ipdb deps = ipdb
commands = {posargs} commands = {posargs}
[testenv:lint] [testenv:py2lint]
deps = deps =
coverage coverage
pep8 pep8
@ -34,3 +34,15 @@ commands =
pep8 pylast pep8 pylast
pep8 tests pep8 tests
./clonedigger.sh ./clonedigger.sh
[testenv:py3lint]
deps =
coverage
pep8
pyyaml
pyflakes
commands =
pyflakes pylast
pyflakes tests
pep8 pylast
pep8 tests