From f9cc3bbbeffba024079eac59a30a6c155396d62c Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Thu, 9 Feb 2017 17:07:35 +0100 Subject: Add note about extraneous virtualenvs --- CONTRIBUTING.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 83c844e28..dafa73bad 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -85,6 +85,24 @@ parallel pip install tox detox ``` +--- + +Note: before running `tox` or `detox`, ensure that the only virtualenvs within +the repository root are the ones managed by `tox`, those in a `.tox` +subdirectory. + +Use this command to list paths that are likely part of a virtualenv not managed +by `tox`: + +``` +$ find . -path '*/bin/python' | grep -vF .tox +``` + +Extraneous virtualenvs cause tools such as `pylint` to take a very long time +going through files that are part of the virtualenv. + +--- + List the test environments available: ``` tox -l -- cgit v1.2.3 From c178cfa02d892319a99f78ab753851a6c488bff8 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Thu, 9 Feb 2017 17:08:25 +0100 Subject: Let pylint use as many CPUs as available --- .pylintrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index a32bd3d68..ab842843a 100644 --- a/.pylintrc +++ b/.pylintrc @@ -18,7 +18,8 @@ persistent=no load-plugins= # Use multiple processes to speed up Pylint. -jobs=1 +# Zero means use the total number of CPUs. +jobs=0 # Allow loading of arbitrary C extensions. Extensions are imported into the # active Python interpreter and may run arbitrary code. -- cgit v1.2.3