Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Ignore everything from fmn.lib.hinting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jan 9, 2015
1 parent 6a48831 commit 61b633c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fmn/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def load_rules(root='fmn.rules'):

module = __import__(root, fromlist=[root.split('.')[0]])

hinting_helpers = fmn.lib.hinting.__dict__.values()

rules = {}
for name in dir(module):
obj = getattr(module, name)
Expand All @@ -120,8 +122,8 @@ def load_rules(root='fmn.rules'):
if not callable(obj):
continue

# Ignore our decorator
if name == 'hint':
# Ignore our decorator and its friends
if obj in hinting_helpers:
continue

doc = inspect.getdoc(obj)
Expand Down

0 comments on commit 61b633c

Please sign in to comment.