Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prospector uses #99

Merged
merged 2 commits into from
Mar 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/vsc/install/commontest.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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