Skip to content

Commit

Permalink
Skip load_tests in API documentation (#762)
Browse files Browse the repository at this point in the history
* Skip load_tests in autodoc

* Local flake8
  • Loading branch information
kitchoi authored Oct 15, 2020
1 parent e9b7d96 commit a3ad0f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,12 @@
'IPython.frontend.wx',
'IPython.frontend.wx.wx_frontend',
]


def autodoc_skip_member(app, what, name, obj, skip, options):
# Skip load_tests
return skip or name == "load_tests"


def setup(app):
app.connect('autodoc-skip-member', autodoc_skip_member)

0 comments on commit a3ad0f2

Please sign in to comment.