summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorFrank Harrison <frank@doublethefish.com>2020-04-03 08:21:45 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2020-11-27 08:42:30 +0100
commit385533894664465c936fc672c29e3c70d8ac0fdf (patch)
treeff63a1aa466c12d93c9f38f40f6e13f0dba5529f /tox.ini
parent9d4f2c082e4f17fb5165deb0c9e4a0fd329d5cbd (diff)
downloadpylint-git-385533894664465c936fc672c29e3c70d8ac0fdf.tar.gz
profile| Runs pylint against external code, generating profile-heatmaps
* Use https gitub uri so we do not need creditials * Shallow clone so we don't pull more data than we need * Ensure we skip external profiling unless explicitly wanted
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini17
1 files changed, 17 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index ed9ea4f9d..70a0a327b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -157,4 +157,21 @@ commands =
--benchmark-group-by="group" \
{posargs:}
+[testenv:profile_against_external]
+deps =
+ https://github.com/PyCQA/astroid/tarball/master#egg=astroid-master-2.0
+ gprof2dot
+ mccabe
+ pytest
+ pytest-profiling
+ pytest-xdist
+
+setenv =
+ PYTEST_PROFILE_EXTERNAL = 1
+
+commands =
+ python -Wi -m pytest --exitfirst \
+ --profile-svg \
+ {toxinidir}/tests/profile/test_profile_against_externals.py
+
changedir = {toxworkdir}