File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ dependencies:
13
13
- pytz
14
14
- setuptools>=24.2.0
15
15
- sphinx
16
+ - sphinxcontrib-spelling
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ python-dateutil>=2.5.0
9
9
pytz
10
10
setuptools>=24.2.0
11
11
sphinx
12
+ sphinxcontrib-spelling
Original file line number Diff line number Diff line change 16
16
import re
17
17
import inspect
18
18
import importlib
19
- from sphinx . ext . autosummary import _import_by_name
19
+ import logging
20
20
import warnings
21
+ from sphinx .ext .autosummary import _import_by_name
21
22
23
+ logger = logging .getLogger (__name__ )
22
24
23
25
try :
24
26
raw_input # Python 2
73
75
'sphinx.ext.ifconfig' ,
74
76
'sphinx.ext.linkcode' ,
75
77
'nbsphinx' ,
76
- 'sphinxcontrib.spelling'
77
78
]
78
79
80
+ try :
81
+ import sphinxcontrib .spelling
82
+ except ImportError as err :
83
+ logger .warn (('sphinxcontrib.spelling failed to import with error "{}". '
84
+ '`spellcheck` command is not available.' .format (err )))
85
+ else :
86
+ extensions .append ('sphinxcontrib.spelling' )
87
+
79
88
exclude_patterns = ['**.ipynb_checkpoints' ]
80
89
81
90
spelling_word_list_filename = ['spelling_wordlist.txt' , 'names_wordlist.txt' ]
You can’t perform that action at this time.
0 commit comments