File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 52
52
- image : circleci/python:3.6
53
53
environment :
54
54
TOXENV : lint-py36
55
+ py36-docs :
56
+ << : *common
57
+ docker :
58
+ - image : circleci/python:3.6
59
+ environment :
60
+ TOXENV : py36-docs
55
61
py35-native-state-byzantium :
56
62
<< : *common
57
63
docker :
@@ -243,6 +249,7 @@ workflows:
243
249
version : 2
244
250
test :
245
251
jobs :
252
+ - py36-docs
246
253
- py36-native-state-byzantium
247
254
- py36-native-state-frontier
248
255
- py36-native-state-homestead
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ coverage:
40
40
build-docs :
41
41
cd docs/; sphinx-build -T -E . _build/html
42
42
43
+ doctest :
44
+ cd docs/; sphinx-build -T -b doctest . _build/doctest
45
+
46
+ validate-docs : build-docs doctest
47
+
43
48
docs : build-docs
44
49
open docs/_build/html/index.html
45
50
Original file line number Diff line number Diff line change 41
41
extensions = [
42
42
'sphinx.ext.todo' ,
43
43
'sphinx.ext.autodoc' ,
44
+ 'sphinx.ext.doctest' ,
44
45
'sphinx.ext.intersphinx' ,
45
46
'sphinxcontrib.asyncio' ,
46
47
]
180
181
'python' : ('https://docs.python.org/3.5' , None ),
181
182
'eth-typing' : ('https://eth-typing.readthedocs.io/en/latest' , None ),
182
183
}
184
+
185
+ # -- Doctest configuration ----------------------------------------
186
+
187
+ import doctest
188
+
189
+ doctest_default_flags = (0
190
+ | doctest .DONT_ACCEPT_TRUE_FOR_1
191
+ | doctest .ELLIPSIS
192
+ | doctest .IGNORE_EXCEPTION_DETAIL
193
+ | doctest .NORMALIZE_WHITESPACE
194
+ )
Original file line number Diff line number Diff line change @@ -47,6 +47,18 @@ basepython =
47
47
py36: python3.6
48
48
49
49
50
+ [testenv:py36-docs]
51
+ whitelist_externals =
52
+ make
53
+ deps = .[doc]
54
+ basepython =python3.6
55
+ passenv =
56
+ PYTEST_ADDOPTS
57
+ TRAVIS_EVENT_TYPE
58
+ commands =
59
+ make validate-docs
60
+
61
+
50
62
[testenv:py36-trinity-integration]
51
63
deps = .[eth-extras, test]
52
64
basepython =python3.6
You can’t perform that action at this time.
0 commit comments