Skip to content

Commit

Permalink
Merge branch 'develop-cleaned'
Browse files Browse the repository at this point in the history
  • Loading branch information
carlio committed May 2, 2017
2 parents 3938b1d + 628c523 commit 4b9aabf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prospector/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _find_paths(ignore, curpath, rootpath):
if os.path.isdir(fullpath):

# is it probably a virtualenvironment?
if is_virtualenv(fullpath):
if is_virtualenv(fullpath) or '.tox' in fullpath:
continue

# this is a directory
Expand Down
5 changes: 4 additions & 1 deletion prospector/profiles/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,7 @@ def _load_profile(name_or_path, profile_path, shorthands_found=None,
inherit_order += new_il
shorthands_found |= new_sh

return contents_dict, inherit_order, shorthands_found
# note: a new list is returned here rather than simply using inherit_order to give astroid a
# clue about the type of the returned object, as otherwise it can recurse infinitely and crash,
# this meaning that prospector does not run on prospector cleanly!
return contents_dict, list(inherit_order), shorthands_found
4 changes: 4 additions & 0 deletions prospector/tools/pylint/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def __init__(self, message_store):
self._message_store = message_store
self._messages = []

def handle_message(self, msg):
location = (msg.abspath, msg.module, msg.obj, msg.line, msg.column)
self.add_message(msg.msg_id, location, msg.msg)

def add_message(self, msg_id, location, msg):
# (* magic is acceptable here)
loc = Location(*location)
Expand Down

0 comments on commit 4b9aabf

Please sign in to comment.