Skip to content

Commit

Permalink
Suppress add_directive docs warning
Browse files Browse the repository at this point in the history
This allows running the docs build with -W again.
  • Loading branch information
brutasse committed Oct 14, 2016
1 parent 2b900a3 commit a142c2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ matrix:
allow_failures:
- env: TOXENV=py26
- env: TOXENV=coverage
- env: TOXENV=docs
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def format_args(self):
if args is not None:
return re.sub('requestContext, ', '', args)

suppress_warnings = ['app.add_directive']


def setup(app):
app.add_autodocumenter(RenderFunctionDocumenter)
Expand Down
3 changes: 1 addition & 2 deletions graphite_api/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def evaluateTarget(requestContext, target, data_store=None):


def evaluateTokens(requestContext, tokens, data_store=None, replacements=None):
from .app import app
if data_store is None:
paths = list(pathsFromTokens(requestContext, tokens))
data_store = fetchData(requestContext, paths)
Expand Down Expand Up @@ -152,5 +153,3 @@ def evaluateTokens(requestContext, tokens, data_store=None, replacements=None):

else:
raise ValueError("unknown token in target evaluator")

from .app import app # noqa

0 comments on commit a142c2f

Please sign in to comment.