Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 16, 2020
1 parent 860bc7f commit f5a4831
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ def package_list_from_file(file):
for ln in fp.readlines():
found = [ln.index(ch) for ch in list(',=<>#') if ch in ln]
pkg = ln[:min(found)] if found else ln
if pkg.rstrip():
mocked_packages.append(pkg.rstrip())
if pkg.strip():
mocked_packages.append(pkg.strip())
return mocked_packages


Expand All @@ -360,8 +360,7 @@ def package_list_from_file(file):
# replace PyPI packages by importing ones
MOCK_PACKAGES = [PACKAGE_MAPPING.get(pkg, pkg) for pkg in MOCK_PACKAGES]

MOCK_MANUAL_PACKAGES = []
autodoc_mock_imports = MOCK_PACKAGES + MOCK_MANUAL_PACKAGES
autodoc_mock_imports = MOCK_PACKAGES
# for mod_name in MOCK_REQUIRE_PACKAGES:
# sys.modules[mod_name] = mock.Mock()

Expand Down Expand Up @@ -441,13 +440,6 @@ def find_source():
import pytorch_lightning as pl
from pytorch_lightning import Trainer, LightningModule
from pl_bolts.utils import (
_TORCHVISION_AVAILABLE,
_GYM_AVAILABLE,
_SKLEARN_AVAILABLE,
_PIL_AVAILABLE,
_OPENCV_AVAILABLE,
)
"""
coverage_skip_undoc_in_source = True

0 comments on commit f5a4831

Please sign in to comment.