jenkins-bot has submitted this change and it was merged.
Change subject: tox: Add flake83 environment to run flake8 under Python 3
......................................................................
tox: Add flake83 environment to run flake8 under Python 3
The flake8 env is now explicitly for Python 2. This will allow
us to run flake8 on both 2 and 3 together.
Change-Id: I3502b8266d735577089a3782d7e3f2c08c8c526e
---
M tox.ini
1 file changed, 9 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tox.ini b/tox.ini
index 35281f6..c040f75 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
-envlist = flake8,flake8-docstrings,py26,py27,py34
+envlist = flake8,flake83,flake8-docstrings,py26,py27,py34
[testenv]
setenv = VIRTUAL_ENV={envdir}
@@ -11,9 +11,17 @@
[testenv:flake8]
commands = flake8 --ignore=D102,D103,E122,E127,E241 {posargs}
+basepython = python2.7
deps = flake8
flake8-docstrings
+[testenv:flake83]
+commands = flake8 --ignore=D102,D103,E122,E127,E241 {posargs}
+basepython = python3
+deps = flake8
+ flake8-docstrings
+
+
[testenv:flake8-docstrings]
commands = flake8 {posargs}
deps = flake8>=2.2.5
--
To view, visit
https://gerrit.wikimedia.org/r/182042
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3502b8266d735577089a3782d7e3f2c08c8c526e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Hashar <hashar(a)free.fr>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>