Refactor lint to remove duplicate
@@ -23,24 +23,26 @@ commands = pytest -v -s -W all --cov pylast --cov-report term-missing {posargs}
deps = ipdb
commands = {posargs}
-[testenv:py2lint]
+[testenv:lint]
deps =
pycodestyle
pyflakes
- clonedigger
commands =
pyflakes pylast
pyflakes tests
pycodestyle pylast
pycodestyle tests
+
+[testenv:py2lint]
+deps =
+ {[testenv:lint]deps}
+ clonedigger
+commands =
+ {[testenv:lint]commands}
./clonedigger.sh
[testenv:py3lint]
deps =
- pycodestyle
- pyflakes
+ {[testenv:lint]deps}
commands =
- pyflakes pylast
- pyflakes tests
- pycodestyle pylast
- pycodestyle tests
+ {[testenv:lint]commands}
