Skip to content

Commit 58145cb

Browse files
authored
Merge pull request #4178 from HypothesisWorks/create-pull-request/patch
Update pinned dependencies
2 parents 3e1767f + a6e697d commit 58145cb

File tree

24 files changed

+91
-84
lines changed

24 files changed

+91
-84
lines changed

.github/workflows/main.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
NODE_VERSION: 18
227227
# Note that the versions below must be updated in sync; we've automated
228228
# that with `update_pyodide_versions()` in our weekly cronjob.
229-
PYODIDE_VERSION: 0.26.3
229+
PYODIDE_VERSION: 0.26.4
230230
PYTHON_VERSION: 3.12.1
231231
EMSCRIPTEN_VERSION: 3.1.58
232232
steps:
@@ -245,7 +245,6 @@ jobs:
245245
uses: mymindstorm/setup-emsdk@6ab9eb1bda2574c4ddb79809fc9247783eaf9021 # v14
246246
with:
247247
version: ${{ env.EMSCRIPTEN_VERSION }}
248-
actions-cache-folder: emsdk-cache
249248
- name: Build
250249
run: |
251250
pip install pyodide-build==$PYODIDE_VERSION

hypothesis-python/RELEASE.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RELEASE_TYPE: patch
2+
3+
This patch updates our autoformatting tools, improving our code style without any API changes.

hypothesis-python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def local_file(name):
6060
"pytest": ["pytest>=4.6"],
6161
"dpcontracts": ["dpcontracts>=0.4"],
6262
"redis": ["redis>=3.0.0"],
63-
"crosshair": ["hypothesis-crosshair>=0.0.18", "crosshair-tool>=0.0.77"],
63+
"crosshair": ["hypothesis-crosshair>=0.0.18", "crosshair-tool>=0.0.78"],
6464
# zoneinfo is an odd one: every dependency is platform-conditional.
6565
"zoneinfo": [
6666
"tzdata>=2024.2 ; sys_platform == 'win32' or sys_platform == 'emscripten'",

hypothesis-python/src/hypothesis/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
"HealthCheck",
3737
"Phase",
3838
"Verbosity",
39+
"__version__",
40+
"__version_info__",
3941
"assume",
4042
"currently_in_test_context",
4143
"event",
@@ -50,8 +52,6 @@
5052
"seed",
5153
"settings",
5254
"target",
53-
"__version__",
54-
"__version_info__",
5555
]
5656

5757
run()

hypothesis-python/src/hypothesis/database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
__all__ = [
3838
"DirectoryBasedExampleDatabase",
3939
"ExampleDatabase",
40+
"GitHubArtifactDatabase",
4041
"InMemoryExampleDatabase",
4142
"MultiplexedDatabase",
4243
"ReadOnlyDatabase",
43-
"GitHubArtifactDatabase",
4444
]
4545

4646

hypothesis-python/src/hypothesis/extra/_array_helpers.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121

2222
__all__ = [
2323
"NDIM_MAX",
24-
"Shape",
25-
"BroadcastableShapes",
2624
"BasicIndex",
27-
"check_argument",
28-
"order_check",
29-
"check_valid_dims",
25+
"BasicIndexStrategy",
26+
"BroadcastableShapes",
27+
"MutuallyBroadcastableShapesStrategy",
28+
"Shape",
3029
"array_shapes",
31-
"valid_tuple_axes",
3230
"broadcastable_shapes",
31+
"check_argument",
32+
"check_valid_dims",
3333
"mutually_broadcastable_shapes",
34-
"MutuallyBroadcastableShapesStrategy",
35-
"BasicIndexStrategy",
34+
"order_check",
35+
"valid_tuple_axes",
3636
]
3737

3838

hypothesis-python/src/hypothesis/extra/django/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"TestCase",
2525
"TransactionTestCase",
2626
"from_field",
27+
"from_form",
2728
"from_model",
2829
"register_field_strategy",
29-
"from_form",
3030
]

hypothesis-python/src/hypothesis/extra/numpy.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,26 @@ def _try_import(mod_name: str, attr_name: str) -> Any:
6868

6969
__all__ = [
7070
"BroadcastableShapes",
71-
"from_dtype",
72-
"arrays",
71+
"array_dtypes",
7372
"array_shapes",
74-
"scalar_dtypes",
73+
"arrays",
74+
"basic_indices",
7575
"boolean_dtypes",
76-
"unsigned_integer_dtypes",
77-
"integer_dtypes",
78-
"floating_dtypes",
76+
"broadcastable_shapes",
77+
"byte_string_dtypes",
7978
"complex_number_dtypes",
8079
"datetime64_dtypes",
80+
"floating_dtypes",
81+
"from_dtype",
82+
"integer_array_indices",
83+
"integer_dtypes",
84+
"mutually_broadcastable_shapes",
85+
"nested_dtypes",
86+
"scalar_dtypes",
8187
"timedelta64_dtypes",
82-
"byte_string_dtypes",
8388
"unicode_string_dtypes",
84-
"array_dtypes",
85-
"nested_dtypes",
89+
"unsigned_integer_dtypes",
8690
"valid_tuple_axes",
87-
"broadcastable_shapes",
88-
"mutually_broadcastable_shapes",
89-
"basic_indices",
90-
"integer_array_indices",
9191
]
9292

9393
TIME_RESOLUTIONS = tuple("Y M D h m s ms us ns ps fs as".split())

hypothesis-python/src/hypothesis/extra/pandas/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
series,
1818
)
1919

20-
__all__ = ["indexes", "range_indexes", "series", "column", "columns", "data_frames"]
20+
__all__ = ["column", "columns", "data_frames", "indexes", "range_indexes", "series"]

hypothesis-python/src/hypothesis/internal/cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class GenericCache:
5757
on_access and on_evict to implement a specific scoring strategy.
5858
"""
5959

60-
__slots__ = ("max_size", "_threadlocal")
60+
__slots__ = ("_threadlocal", "max_size")
6161

6262
def __init__(self, max_size):
6363
if max_size <= 0:

hypothesis-python/src/hypothesis/internal/conjecture/data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class Example:
232232
often dramatically reduce our memory usage, so is worth it.
233233
"""
234234

235-
__slots__ = ("owner", "index")
235+
__slots__ = ("index", "owner")
236236

237237
def __init__(self, owner: "Examples", index: int) -> None:
238238
self.owner = owner
@@ -713,7 +713,7 @@ class Blocks:
713713
be preferred to using the Block objects directly, as it will not
714714
have to allocate the actual object."""
715715

716-
__slots__ = ("endpoints", "owner", "__blocks", "__count", "__sparse")
716+
__slots__ = ("__blocks", "__count", "__sparse", "endpoints", "owner")
717717
owner: "Union[ConjectureData, ConjectureResult, None]"
718718
__blocks: Union[dict[int, Block], list[Optional[Block]]]
719719

hypothesis-python/src/hypothesis/internal/conjecture/shrinking/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
from hypothesis.internal.conjecture.shrinking.ordering import Ordering
1616
from hypothesis.internal.conjecture.shrinking.string import String
1717

18-
__all__ = ["Integer", "Ordering", "Float", "Collection", "String", "Bytes"]
18+
__all__ = ["Bytes", "Collection", "Float", "Integer", "Ordering", "String"]

hypothesis-python/src/hypothesis/internal/escalation.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ def get_trimmed_traceback(exception=None):
6969
tb is None
7070
or os.environ.get("HYPOTHESIS_NO_TRACEBACK_TRIM", None)
7171
or hypothesis.settings.default.verbosity >= hypothesis.Verbosity.debug
72-
or is_hypothesis_file(traceback.extract_tb(tb)[-1][0])
73-
and not isinstance(exception, _Trimmable)
72+
or (
73+
is_hypothesis_file(traceback.extract_tb(tb)[-1][0])
74+
and not isinstance(exception, _Trimmable)
75+
)
7476
):
7577
return tb
7678
while tb.tb_next is not None and (

hypothesis-python/src/hypothesis/internal/scrutineer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def should_trace_file(fname: str) -> bool:
5454
class Tracer:
5555
"""A super-simple branch coverage tracer."""
5656

57-
__slots__ = ("branches", "_previous_location", "_should_trace")
57+
__slots__ = ("_previous_location", "_should_trace", "branches")
5858

5959
def __init__(self, *, should_trace: bool) -> None:
6060
self.branches: Trace = set()

hypothesis-python/src/hypothesis/strategies/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,21 @@
6565

6666

6767
__all__ = [
68+
"DataObject",
69+
"DrawFn",
70+
"SearchStrategy",
6871
"binary",
6972
"booleans",
7073
"builds",
7174
"characters",
7275
"complex_numbers",
7376
"composite",
7477
"data",
75-
"DataObject",
7678
"dates",
7779
"datetimes",
7880
"decimals",
7981
"deferred",
8082
"dictionaries",
81-
"DrawFn",
8283
"emails",
8384
"fixed_dictionaries",
8485
"floats",
@@ -112,7 +113,6 @@
112113
"timezones",
113114
"tuples",
114115
"uuids",
115-
"SearchStrategy",
116116
]
117117

118118

hypothesis-python/src/hypothesis/strategies/_internal/core.py

+12-10
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,16 @@ def lists(
341341
and len(unique_by) == 1
342342
and (
343343
# Introspection for either `itemgetter(0)`, or `lambda x: x[0]`
344-
isinstance(unique_by[0], operator.itemgetter)
345-
and repr(unique_by[0]) == "operator.itemgetter(0)"
346-
or isinstance(unique_by[0], FunctionType)
347-
and re.fullmatch(
348-
get_pretty_function_description(unique_by[0]),
349-
r"lambda ([a-z]+): \1\[0\]",
344+
(
345+
isinstance(unique_by[0], operator.itemgetter)
346+
and repr(unique_by[0]) == "operator.itemgetter(0)"
347+
)
348+
or (
349+
isinstance(unique_by[0], FunctionType)
350+
and re.fullmatch(
351+
get_pretty_function_description(unique_by[0]),
352+
r"lambda ([a-z]+): \1\[0\]",
353+
)
350354
)
351355
)
352356
):
@@ -1299,10 +1303,8 @@ def from_type_guarded(thing):
12991303
# We've kept it because we turn out to have more type errors from... somewhere.
13001304
# FIXME: investigate that, maybe it should be fixed more precisely?
13011305
pass
1302-
if (
1303-
hasattr(typing, "_TypedDictMeta")
1304-
and type(thing) is typing._TypedDictMeta
1305-
or hasattr(types.typing_extensions, "_TypedDictMeta") # type: ignore
1306+
if (hasattr(typing, "_TypedDictMeta") and type(thing) is typing._TypedDictMeta) or (
1307+
hasattr(types.typing_extensions, "_TypedDictMeta") # type: ignore
13061308
and type(thing) is types.typing_extensions._TypedDictMeta # type: ignore
13071309
): # pragma: no cover
13081310

hypothesis-python/src/hypothesis/vendor/pretty.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def _repr_pretty_(self, p, cycle):
7676
from math import copysign, isnan
7777

7878
__all__ = [
79-
"pretty",
8079
"IDKey",
8180
"RepresentationPrinter",
81+
"pretty",
8282
]
8383

8484

hypothesis-python/tests/array_api/common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
__all__ = [
2525
"MIN_VER_FOR_COMPLEX",
26-
"installed_array_modules",
27-
"flushes_to_zero",
2826
"dtype_name_params",
27+
"flushes_to_zero",
28+
"installed_array_modules",
2929
]
3030

3131

hypothesis-python/tests/common/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
from tests.common.debug import TIME_INCREMENT
3939

40-
__all__ = ["standard_types", "OrderedPair", "TIME_INCREMENT"]
40+
__all__ = ["TIME_INCREMENT", "OrderedPair", "standard_types"]
4141

4242
OrderedPair = namedtuple("OrderedPair", ("left", "right"))
4343

requirements/coverage.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ click==8.1.7
1818
# via
1919
# -r requirements/coverage.in
2020
# black
21-
coverage[toml]==7.6.4
21+
coverage[toml]==7.6.8
2222
# via pytest-cov
2323
dpcontracts==0.6.0
2424
# via -r requirements/coverage.in
@@ -34,7 +34,7 @@ iniconfig==2.0.0
3434
# via pytest
3535
lark==1.2.2
3636
# via -r requirements/coverage.in
37-
libcst==1.5.0
37+
libcst==1.5.1
3838
# via -r requirements/coverage.in
3939
mypy-extensions==1.0.0
4040
# via black
@@ -58,7 +58,7 @@ pluggy==1.5.0
5858
# via pytest
5959
ptyprocess==0.7.0
6060
# via pexpect
61-
pyarrow==18.0.0
61+
pyarrow==18.1.0
6262
# via -r requirements/coverage.in
6363
pytest==8.3.3
6464
# via
@@ -87,7 +87,7 @@ sortedcontainers==2.4.0
8787
# via
8888
# fakeredis
8989
# hypothesis (hypothesis-python/setup.py)
90-
tomli==2.0.2
90+
tomli==2.2.1
9191
# via
9292
# black
9393
# coverage

requirements/fuzzing.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ click==8.1.7
3030
# black
3131
# flask
3232
# hypothesis
33-
coverage[toml]==7.6.4
33+
coverage[toml]==7.6.8
3434
# via
3535
# hypofuzz
3636
# pytest-cov
@@ -57,7 +57,7 @@ flask==3.0.3
5757
# via dash
5858
hypofuzz==24.9.1
5959
# via -r requirements/fuzzing.in
60-
hypothesis[cli]==6.118.6
60+
hypothesis[cli]==6.121.1
6161
# via hypofuzz
6262
idna==3.10
6363
# via requests
@@ -71,7 +71,7 @@ jinja2==3.1.4
7171
# via flask
7272
lark==1.2.2
7373
# via -r requirements/coverage.in
74-
libcst==1.5.0
74+
libcst==1.5.1
7575
# via
7676
# -r requirements/coverage.in
7777
# hypofuzz
@@ -114,7 +114,7 @@ psutil==6.1.0
114114
# via hypofuzz
115115
ptyprocess==0.7.0
116116
# via pexpect
117-
pyarrow==18.0.0
117+
pyarrow==18.1.0
118118
# via -r requirements/coverage.in
119119
pygments==2.18.0
120120
# via rich
@@ -159,7 +159,7 @@ sortedcontainers==2.4.0
159159
# hypothesis (hypothesis-python/setup.py)
160160
tenacity==9.0.0
161161
# via plotly
162-
tomli==2.0.2
162+
tomli==2.2.1
163163
# via
164164
# black
165165
# coverage
@@ -179,9 +179,9 @@ werkzeug==3.0.6
179179
# via
180180
# dash
181181
# flask
182-
zipp==3.20.2
182+
zipp==3.21.0
183183
# via importlib-metadata
184184

185185
# The following packages are considered to be unsafe in a requirements file:
186-
setuptools==75.3.0
186+
setuptools==75.6.0
187187
# via dash

requirements/test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ pytest-xdist==3.6.1
3232
# via -r requirements/test.in
3333
sortedcontainers==2.4.0
3434
# via hypothesis (hypothesis-python/setup.py)
35-
tomli==2.0.2
35+
tomli==2.2.1
3636
# via pytest

0 commit comments

Comments
 (0)