From 7931dcd049c07bc3e4e88dbfb29c5bea950cd1bc Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 1 Nov 2018 17:18:01 -0700 Subject: [PATCH] Use skip_install=true for lint or static tox targets Avoids installing the package (and any potential dependencies) to the virtualenv before running lint or static commands. The package is not required to be installed to do simple static code analysis. Results in a slightly faster run, as fetching and installing dependencies is skipped. For additional information on the configuration option, see: https://tox.readthedocs.io/en/latest/config.html#confval-skip_install=BOOL > Do not install the current package. This can be used when you need the > virtualenv management but do not want to install the current package > into that environment. --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 247af9c..49dd952 100644 --- a/tox.ini +++ b/tox.ini @@ -19,3 +19,4 @@ commands=py.test --tb native {posargs:tests} [testenv:flake8] deps=flake8 commands=flake8 {toxinidir}/cas.py +skip_install = true