Skip to content
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

Merged
merged 7 commits into from
Jul 3, 2018

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Jul 1, 2018

Zac-HD added 6 commits July 1, 2018 22:59
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
<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:
Copy link
Contributor

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


.. code:: md

[![](https://img.shields.io/badge/hypothesis-tested-brightgreen.svg)](https://hypothesis.readthedocs.io/)
Copy link
Contributor

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”?

@@ -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
Copy link
Contributor

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”?

Copy link
Contributor

@alexwlchan alexwlchan left a 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.

.. _pytest-plugin:

----------------------------
The Hypothesis Pytest Plugin
Copy link
Contributor

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 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.
Copy link
Contributor

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.

@Zac-HD Zac-HD merged commit 686933a into HypothesisWorks:master Jul 3, 2018
@Zac-HD Zac-HD deleted the docs-tweaks branch July 3, 2018 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants