Skip to content

Commit

Permalink
Add more mock imports for autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
arvk committed Aug 19, 2023
1 parent 8394af8 commit 157ec76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['mpi4py','xtal','platypus','platypus.types','platypus.operators','schwimmbad','nevergrad','pymoo','platypus-opt','deap']
MOCK_MODULES = ['mpi4py','xtal','platypus','platypus.types','platypus.operators','schwimmbad','nevergrad','pymoo','platypus-opt','deap','numpy','mobopt']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

autodoc_mock_imports = ['platypus.types','platypus.operators','platypus.mpipool','platypus.mpipool.MPIPool','MPIPool','mpi4py','xtal','platypus','platypus.types','platypus.operators','schwimmbad','nevergrad','pymoo','platypus-opt','deap']
autodoc_mock_imports = ['platypus.types','platypus.operators','platypus.mpipool','platypus.mpipool.MPIPool','MPIPool','mpi4py','xtal','platypus','platypus.types','platypus.operators','schwimmbad','nevergrad','pymoo','platypus-opt','deap','numpy','mobopt']

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 157ec76

Please # to comment.