2023-07-20 09:59:05 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-hypothesis: updated to 6.82.0
6.81.2
If the HYPOTHESIS_NO_PLUGINS environment variable is set, we’ll avoid loading \
plugins such as the old Pydantic integration or HypoFuzz’ CLI options.
This is probably only useful for our own self-tests, but documented in case it \
might help narrow down any particularly weird bugs in complex environments.
6.81.1
Fixes some lingering issues with inference of recursive types in \
~hypothesis.strategies.from_type.
6.81.0
This release further improves our .patch-file support from version 6.75, \
skipping duplicates, tests which use data() (and don’t support @example()), \
and various broken edge-cases.
Because libCST has released version 1.0 which uses the native parser by default, \
we no longer set the LIBCST_PARSER_TYPE=native environment variable. If you are \
using an older version, you may need to upgrade or set this envvar for yourself.
6.80.1
This patch updates some internal code for selftests. There is no user-visible change.
6.80.0
This release drops support for Python 3.7, which reached end of life on 2023-06-27.
6.79.4
Fixes occasional recursion-limit-exceeded errors when validating deeply nested \
strategies.
6.79.3
This patch updates our vendored list of top-level domains, which is used by the \
provisional domains() strategy.
6.79.2
Improve the type rendered in from_type(), which improves the coverage of Ghostwriter.
6.79.1
We now test against Python 3.12 beta in CI, and this patch fixes some new \
deprecations.
6.79.0
This release changes register_type_strategy() for compatibility with PEP 585: we \
now store only a single strategy or resolver function which is used for both the \
builtin and the typing module version of each type.
If you previously relied on registering separate strategies for e.g. list vs \
typing.List, you may need to use explicit strategies rather than inferring them \
from types.
|
2023-06-16 10:40:28 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-hypothesis: updated to 6.78.3
6.78.3
This release ensures that Ghostwriter does not use the deprecated aliases for \
the collections.abc classes in collections.
6.78.2
This patch improves Ghostwriter’s use of qualified names for re-exported \
functions and classes, and avoids importing useless TypeVars.
6.78.1
This patch updates our vendored list of top-level domains, which is used by the \
provisional domains() strategy.
6.78.0
New input validation for recursive() will raise an error rather than hanging \
indefinitely if passed invalid max_leaves= arguments.
6.77.0
from_type() now handles numpy array types: np.typing.ArrayLike, \
np.typing.NDArray, and parameterized versions including np.ndarray[shape, \
elem_type].
6.76.0
Warn in from_type() if the inferred strategy has no variation (always returning \
default instances). Also handles numpy data types by calling from_dtype() on the \
corresponding dtype, thus ensuring proper variation for these types.
|
2023-05-07 10:35:49 by Thomas Klausner | Files touched by this commit (3) | |
Log message:
py-hypothesis: update to 6.75.2.
6.75.2 - 2023-05-04
Improved the documentation regarding how to use GitHubArtifactDatabase and fixed \
a bug that occurred in repositories with no existing artifacts.
Thanks to Agustín Covarrubias for this contribution.
6.75.1 - 2023-04-30
hypothesis.errors will now raise AttributeError when attempting to access an \
undefined attribute, rather than returning None.
6.75.0 - 2023-04-30
Sick of adding @example()s by hand? Our Pytest plugin now writes .patch files to \
insert them for you, making this workflow easier than ever before.
Note that you’ll need LibCST (via hypothesis[codemods]), and that \
@example().via() requires PEP 614 (Python 3.9 or later).
|
2023-04-30 19:14:48 by Thomas Klausner | Files touched by this commit (2) | |
Log message:
py-hypothesis: update to 6.74.1.
6.74.1 - 2023-04-28
This patch provides better error messages for datetime- and timedelta-related \
invalid dtypes in our Pandas extra (issue #3518). Thanks to Nick Muoh at the \
PyCon Sprints!
6.74.0 - 2023-04-26
This release adds support for nullable pandas dtypes in pandas() (issue #3604). \
Thanks to Cheuk Ting Ho for implementing this at the PyCon sprints!
6.73.1 - 2023-04-27
This patch updates our minimum Numpy version to 1.16, and restores compatibility \
with versions before 1.20, which were broken by a mistake in Hypothesis 6.72.4 \
(issue #3625).
6.73.0 - 2023-04-25
This release upgrades the explain phase (issue #3411).
Following the first failure, Hypothesis will (usually) track which lines of \
code were executed by passing and failing examples, and report where they \
diverged - with some heuristics to drop unhelpful reports. This is an existing \
feature, now upgraded and newly enabled by default.
After shrinking to a minimal failing example, Hypothesis will try to find \
parts of the example – e.g. separate args to @given() – which can vary \
freely without changing the result of that minimal failing example. If the \
automated experiments run without finding a passing variation, we leave a \
comment in the final report:
test_x_divided_by_y(
x=0, # or any other generated value
y=0,
)
Just remember that the lack of an explanation sometimes just means that \
Hypothesis couldn’t efficiently find one, not that no explanation (or simpler \
failing example) exists.
6.72.4 - 2023-04-25
This patch fixes type annotations for the arrays() strategy. Thanks to Francesc \
Elies for pull request #3602.
6.72.3 - 2023-04-25
This patch fixes a bug with from_type() with dict[tuple[int, int], str] (issue \
#3527).
Thanks to Nick Muoh at the PyCon Sprints!
6.72.2 - 2023-04-24
This patch refactors our internals to facilitate an upcoming feature.
6.72.1 - 2023-04-19
This patch fixes some documentation and prepares for future features.
6.72.0 - 2023-04-16
This release deprecates Healthcheck.all(), and adds a codemod to automatically \
replace it with list(Healthcheck) (issue #3596).
6.71.0 - 2023-04-07
This release adds GitHubArtifactDatabase, a new database backend that allows \
developers to access the examples found by a Github Actions CI job. This is \
particularly useful for workflows that involve continuous fuzzing, like \
HypoFuzz.
Thanks to Agustín Covarrubias for this feature!
6.70.2 - 2023-04-03
This patch clarifies the reporting of time spent generating data. A simple \
arithmetic mean of the percentage of time spent can be misleading; reporting the \
actual time spent avoids misunderstandings.
Thanks to Andrea Reina for reporting and fixing issue #3598!
|
2023-04-04 13:24:42 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-hypothesis: updated to 6.70.2
6.70.2 - 2023-04-03¶
This patch clarifies the reporting of time spent generating data. A simple \
arithmetic mean of the percentage of time spent can be misleading; reporting the \
actual time spent avoids misunderstandings.
6.70.1 - 2023-03-27¶
This patch updates our vendored list of top-level domains, which is used by the \
provisional domains() strategy.
6.70.0 - 2023-03-16¶
This release adds an optional domains= parameter to the emails() strategy, and \
excludes the special-use .arpa domain from the default strategy.
6.69.0 - 2023-03-15¶
This release turns HealthCheck.return_value and HealthCheck.not_a_test_method \
into unconditional errors. Passing them to suppress_health_check= is therefore a \
deprecated no-op.
Separately, GraalPy can now run and pass most of the hypothesis test suite.
6.68.3 - 2023-03-15¶
This patch updates our vendored list of top-level domains, which is used by the \
provisional domains() strategy.
6.68.2 - 2023-02-17¶
This patch fixes missing imports of the re module, when ghostwriting tests which \
include compiled patterns or regex flags. Thanks to Jens Heinrich for reporting \
and promptly fixing this bug!
6.68.1 - 2023-02-12¶
This patch adds some private hooks for use in research on Schemathesis (see our \
preprint here).
6.68.0 - 2023-02-09¶
This release adds support for the Array API’s 2022.12 release via the \
api_version argument in make_strategies_namespace(). Concretely this involves \
complex support in its existing strategies, plus an introduced \
xps.complex_dtypes() strategy.
Additionally this release now treats hypothesis.extra.array_api as stable, \
meaning breaking changes should only happen with major releases of Hypothesis.
|
2023-03-29 11:34:15 by Thomas Klausner | Files touched by this commit (96) |
Log message:
*: use PYTHON_VERSION instead of _PYTHON_VERSION
|
2022-12-18 17:18:53 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-hypothesis: updated to 6.61.0
6.61.0
This release improves our treatment of database keys, which based on (among \
other things) the source code of your test function. We now post-process this \
source to ignore decorators, comments, trailing whitespace, and blank lines - so \
that you can add @example()s or make some small no-op edits to your code without \
preventing replay of any known failing or covering examples.
6.60.1
This patch updates our vendored list of top-level domains, which is used by the \
provisional domains() strategy.
6.60.0
This release improves Hypothesis’ ability to resolve forward references in \
type annotations. It fixes a bug that prevented builds() from being used with \
pydantic models that possess updated forward references.
6.59.0
The @example(...) decorator now has a .via() method, which future tools will use \
to track automatically-added covering examples.
6.58.2
This patch updates our vendored list of top-level domains, which is used by the \
provisional domains() strategy.
6.58.1
This patch shifts hypothesis[lark] from depending on the old lark-parser package \
to the new lark package. There are no code changes in Hypothesis, it’s just \
that Lark got a new name on PyPI for version 1.0 onwards.
6.58.0
register_random() has used weakref since 6.27.1 - 2021-11-22, allowing the \
Random-compatible objects to be garbage-collected when there are no other \
references remaining in order to avoid memory leaks. We now raise an error or \
emit a warning when this seems likely to happen immediately.
The type annotation of register_random() was also widened so that structural \
subtypes of Random are accepted by static typecheckers.
|
2022-11-14 09:33:57 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-hypothesis: updated to 6.57.1
6.57.1 - 2022-11-14
This patch updates some internal type annotations and fixes a formatting bug in \
the explain phase reporting.
6.57.0 - 2022-11-14
Hypothesis now raises an error if you passed a strategy as the alphabet= \
argument to text(), and it generated something which was not a length-one \
string. This has never been supported, we’re just adding explicit validation \
to catch cases like this StackOverflow question.
|
2022-11-04 19:34:53 by Adam Ciarcinski | Files touched by this commit (1) |
Log message:
py-hypothesis: add ALTERNATIVES
|
2022-11-04 19:34:10 by Adam Ciarcinski | Files touched by this commit (4) |
Log message:
py-hypothesis: fix build for Python 3.7; avoid self-conflict; bump revision
|