diff options
author | Hervé Beraud <hberaud@redhat.com> | 2021-07-04 00:16:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 15:16:24 -0700 |
commit | 5a8535dccd877495e28b4e78d0c25499fd72cd4d (patch) | |
tree | 59f8bd2dd91da3cb2b5dab7e7a13f181cab67784 /tox.ini | |
parent | 059c9d4aeed23ad0b11ddf0babb31b69b28372d3 (diff) | |
download | pymemcache-5a8535dccd877495e28b4e78d0c25499fd72cd4d.tar.gz |
Rely on tox for CI linter (#334)
These changes allow us to rely on tox when we execute our linters on CI.
They centralize the way we define our jobs and targets to use them
in standardized way locally and during CI pipelines.
With these changes we are sure to execute the same commands everywhere.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1,8 +1,13 @@ [tox] -envlist = py27, py34, py35, py36, py37, py38, py39, pypy, pypy3, py27-flake8, py39-flake8, integration +envlist = py27, py34, py35, py36, py37, py38, py39, pypy, pypy3, flake8, integration skip_missing_interpreters = True +# Automatic envs (pyXX) will only use the python version appropriate to that +# env and ignore basepython inherited from [testenv] if we set +# ignore_basepython_conflict. +ignore_basepython_conflict = True [testenv] +basepython = python3 setenv = PYTHONPATH = {toxinidir} deps = -r{toxinidir}/test-requirements.txt @@ -15,16 +20,11 @@ commands = pip install -e . py.test {posargs:pymemcache/test/ -m integration} -[testenv:py27-flake8] +[testenv:flake8] +# Avoid pulling all the base requirements only to run flake8 +deps = flake8 commands = - pip install flake8 - flake8 pymemcache/ - python setup.py check --restructuredtext - -[testenv:py39-flake8] -commands = - pip install flake8 - flake8 pymemcache/ + flake8 python setup.py check --restructuredtext [testenv:docs] |