Skip to content

Commit

Permalink
Merge pull request #99 from stdweird/prospector_uses
Browse files Browse the repository at this point in the history
Prospector uses
  • Loading branch information
hajgato committed Mar 21, 2019
2 parents 1e7871c + cf25c3c commit a0c3b01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/vsc/install/commontest.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/vsc/install/shared_setup.py
Expand Up @@ -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)

Expand Down

0 comments on commit a0c3b01

Please sign in to comment.