diff --git a/lib/vsc/install/commontest.py b/lib/vsc/install/commontest.py index edd87e7a..b55ff7d5 100644 --- a/lib/vsc/install/commontest.py +++ b/lib/vsc/install/commontest.py @@ -63,6 +63,11 @@ except ImportError: pass + +# this sets the --uses commandline +PROSPECTOR_USE_LIBS = [] + + # List of regexps patterns applied to code or message of a prospector.message.Message # Blacklist: if match, skip message, do not check whitelist # Whitelist: if match, fail test @@ -135,8 +140,13 @@ def run_prospector(base_dir, clear_ignore_patterns=False): sys.argv = ['fakename'] sys.argv.extend(PROSPECTOR_OPTIONS) + + if PROSPECTOR_USE_LIBS: + sys.argv.extend(["--uses", ",".join(PROSPECTOR_USE_LIBS)]) + # add/set REPO_BASE_DIR as positional path sys.argv.append(base_dir) + log.debug("prospector commandline %s" % sys.argv) config = ProspectorConfig() # prospector will sometimes wrongly autodetect django diff --git a/lib/vsc/install/shared_setup.py b/lib/vsc/install/shared_setup.py index 2ad265f6..ed51d34a 100644 --- a/lib/vsc/install/shared_setup.py +++ b/lib/vsc/install/shared_setup.py @@ -155,7 +155,7 @@ def _log(self, level, msg, args): RELOAD_VSC_MODS = False -VERSION = '0.12.1' +VERSION = '0.12.2' log.info('This is (based on) vsc.install.shared_setup %s' % VERSION)