-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
have pytest run code examples in docs + have travis build docs #59
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,10 @@ Contents: | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
* :doc:`tutorial` | ||
* :doc:`reference` | ||
* :doc:`howto` | ||
tutorial | ||
reference | ||
howto | ||
devel | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw, I moved these under the |
||
|
||
Installation: | ||
------------- | ||
|
@@ -91,7 +92,7 @@ of the code:: | |
run(tcp_server('', 25000, echo_client)) | ||
|
||
This is only a small sample of what's possible. The `tutorial | ||
<https://curio.readthedocs.org/en/latest/tutorial.html>`_ is a good starting point | ||
<https://curio.readthedocs.io/en/latest/tutorial.html>`_ is a good starting point | ||
for more information. | ||
|
||
Additional Features | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[pytest] | ||
; uncomment when ready to test code samples in docs: | ||
;testpaths = tests docs | ||
testpaths = tests | ||
addopts = --verbose | ||
--ignore=setup.py --ignore=docs/conf.py | ||
; --doctest-modules --doctest-glob=docs/*.rst | ||
; uncomment ^^^ when ready to test code samples in docs | ||
doctest_optionflags = IGNORE_EXCEPTION_DETAIL ELLIPSIS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the use of
travis_retry
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw it in another project's .travis.yml (which seemed like it knew what it was doing), and it seemed like a zero-cost line of defense against e.g. transient network failures and other things that shouldn't cause the build to fail. Any reason not to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly don't know, hence the question. 😄