This release automatically rewrites some simple filters, such as
"integers().filter(lambda x: x > 9)" to the more efficient
"integers(min_value=10)", based on the AST of the predicate.
We continue to recommend using the efficient form directly wherever
possible, but this should be useful for e.g. pandera ""Checks"" where
you already have a simple predicate and translating manually is really
annoying. See issue #2701 for ideas about floats and simple text
strategies.
"hypothesis.target()" now returns the "observation" value, allowing it
to be conveniently used inline in expressions such as "assert
target(abs(a - b)) < 0.1".
This patch fixes a deprecation warning if you're using recent versions
of importlib-metadata (issue #2934), which we use to load third-party
plugins such as Pydantic's integration. On older versions of
importlib-metadata, there is no change and you don't need to upgrade.
This release teaches the Ghostwriter to read parameter types from
Sphinx, Google, or Numpy-style structured docstrings, and improves
some related heuristics about how to test scientific and numerical
programs.
This release improves the Ghostwriter's handling of exceptions, by
reading ":raises ...:" entries in function docstrings and ensuring
that we don't suppresss the error raised by test assertions.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps hypothesis from 6.3.4 to 6.12.0.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
71035b7
Bump hypothesis-python version to 6.12.0 and update changeloga456a39
Merge pull request #2949 from Zac-HD/understand-filter-ast722f12a
Bump hypothesis-python version to 6.11.0 and update changelog4ba9021
Merge pull request #2956 from Zac-HD/target-returns2840a3a
Allow inline targeting9cb3bf4
Improve coverageb39204e
Refactor, add testsdcc07dc
Get lambda filters workingce77c25
Merge pull request #2953 from HypothesisWorks/create-pull-request/patchfef9046
Update dev process docsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)