summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJeremy Stanley <fungi@yuggoth.org>2021-03-11 19:50:40 +0000
committerGuillaume Chauvel <guillaume.chauvel@gmail.com>2021-03-30 14:56:40 +0200
commitf995fba9a66a820c7f06dd86f39d40d0ae18acaa (patch)
treea39f863d30a00cd218131f4f543d679d0dd94f85 /tox.ini
parent66ba8442dcaba24de0322793876bd241858b49a3 (diff)
downloadgear-f995fba9a66a820c7f06dd86f39d40d0ae18acaa.tar.gz
Update testing to Python 3.9 and linters
In preparation for an upcoming release, add testing for latest Python (3.9). Switch tox to use Python 3 by default, and rename the testenv for flake8 from pep8 to linters, consistent with other tools and libraries OpenDev maintains. Update to a newer hacking plugin, which will use newer flake8 as well. Ignore rules about line breaks around comparison operators, as well as those related to ambiguous variable names, at least for now. Also build distribution artifacts on a more recent platform so we get newer Setuptools with support for the latest package metadata, in preparation for a coming change to update that. Change-Id: I2130d66fc9aadaa9fe09635b59475be71938132e
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 5 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 5984ff7..27a7c09 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,13 @@
[tox]
minversion = 1.6
skipsdist = True
-envlist = py34,py35,py27,pep8
+envlist = py3,py27,linters
+ignore_basepython_conflict = true
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
+basepython = python3
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
@@ -15,7 +17,7 @@ commands =
[tox:jenkins]
sitepackages = True
-[testenv:pep8]
+[testenv:linters]
commands = flake8
[testenv:cover]
@@ -30,7 +32,7 @@ commands = {posargs}
exclude = .venv,.tox,dist,doc,*.egg
show-source = true
# E123, E125, E129 and H ignored intentionally in this code-base
-ignore = E123,E125,E129,H
+ignore = E123,E125,E129,E741,W504,H
[testenv:docs]
basepython = python3