-
Notifications
You must be signed in to change notification settings - Fork 590
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
Lots of small documentation improvements #1375
Conversation
The suggested citation will be updated again if or when we publish in e.g. JOSS
Even if we don't use them, it's useful to have a standard suggestion for anyone who does want a badge.
Including of pytest.mark.hypothesis
hypothesis-python/docs/community.rst
Outdated
<https://github.com/HypothesisWorks/hypothesis/blob/master/CITATION>`_. | ||
|
||
If you like repo badges, we suggest the following badge, which you can add | ||
with restructuredtext or markdown, respectively: |
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.
nit: “reStructuredText or Markdown” is the correct capitalisation
hypothesis-python/docs/community.rst
Outdated
|
||
.. code:: md | ||
|
||
[![](https://img.shields.io/badge/hypothesis-tested-brightgreen.svg)](https://hypothesis.readthedocs.io/) |
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.
minor: maybe include some alt text in the image? “Tested with Hypothesis”?
hypothesis-python/docs/stateful.rst
Outdated
@@ -179,6 +179,10 @@ on a function. | |||
Note that RuleBasedStateMachine must have at least one rule defined and that | |||
a single function cannot be used to define multiple rules (this to avoid having | |||
multiple rules doing the same things). | |||
Due to the stateful execution method, rules are generally cannot take arguments |
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.
“rules are generally” – do you need the “are”?
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.
Looks fine to me.
Two tiny nits, which I’m happy for you to fix or ignore as you wish, and then merge.
hypothesis-python/docs/details.rst
Outdated
.. _pytest-plugin: | ||
|
||
---------------------------- | ||
The Hypothesis Pytest Plugin |
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.
nit: the style convention in the pytest docs is to use a lowercase “p”
e.g. https://docs.pytest.org/en/latest/existingtestsuite.html
hypothesis-python/docs/details.rst
Outdated
Hypothesis includes a tiny plugin to improve integration with :pypi:`pytest`, | ||
which is activated by default (but does not affect other test runners). | ||
It aims to improve the integration between Hypothesis and Pytest by | ||
providing extra information and a convenient access to config options. |
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.
nit: is the “a” needed? Feels a bit jarring to me – “and convenient access to config options” scans more naturally.
@composite
- including explicit comparison tost.data()
.@rule
and@pytest.mark.parametrize
do not work well together.