summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-10 19:42:54 +0100
committerGitHub <noreply@github.com>2017-02-10 19:42:54 +0100
commita2a4f81529999c8d82fd554becdbba7fabf872cf (patch)
tree1818f1848d330a4ca9d7c2eda05753bc2e3edb38
parent5ee790032dae79a6dd588f53b24932248e00f9ec (diff)
parentc178cfa02d892319a99f78ab753851a6c488bff8 (diff)
downloadopenshift-a2a4f81529999c8d82fd554becdbba7fabf872cf.tar.gz
openshift-a2a4f81529999c8d82fd554becdbba7fabf872cf.tar.bz2
openshift-a2a4f81529999c8d82fd554becdbba7fabf872cf.tar.xz
openshift-a2a4f81529999c8d82fd554becdbba7fabf872cf.zip
Merge pull request #3329 from rhcarvalho/python-workflow
Python workflow
-rw-r--r--.pylintrc3
-rw-r--r--CONTRIBUTING.md18
2 files changed, 20 insertions, 1 deletions
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.
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