From 385533894664465c936fc672c29e3c70d8ac0fdf Mon Sep 17 00:00:00 2001 From: Frank Harrison Date: Fri, 3 Apr 2020 08:21:45 +0100 Subject: 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 --- tox.ini | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tox.ini') 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} -- cgit v1.2.1