Skip to content

Commit 3346f25

Browse files
committed
Update pinned dependencies
1 parent 6c51f10 commit 3346f25

File tree

6 files changed

+52
-51
lines changed

6 files changed

+52
-51
lines changed

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.12", "crosshair-tool>=0.0.66"],
63+
"crosshair": ["hypothesis-crosshair>=0.0.13", "crosshair-tool>=0.0.68"],
6464
# zoneinfo is an odd one: every dependency is conditional, because they're
6565
# only necessary on old versions of Python or Windows systems or emscripten.
6666
"zoneinfo": [

notebooks/Designing a better simplifier.ipynb

+28-27
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@
5454
" \"\"\"\n",
5555
" This is our prototype shrink function. It is very bad. It makes the\n",
5656
" mistake of only making very small changes to an example each time.\n",
57-
" \n",
57+
"\n",
5858
" Most people write something like this the first time they come to\n",
5959
" implement example shrinking. In particular early Hypothesis very much\n",
6060
" made this mistake.\n",
61-
" \n",
61+
"\n",
6262
" What this does:\n",
63-
" \n",
63+
"\n",
6464
" For each index, if the value of the index is non-zero we try\n",
6565
" decrementing it by 1.\n",
66-
" \n",
66+
"\n",
6767
" We then (regardless of if it's zero) try the list with the value at\n",
6868
" that index deleted.\n",
6969
" \"\"\"\n",
@@ -88,7 +88,7 @@
8888
" \"\"\"\n",
8989
" This is a debug function. You shouldn't concern yourself with\n",
9090
" its implementation too much.\n",
91-
" \n",
91+
"\n",
9292
" What it does is print out every intermediate step in applying a\n",
9393
" simplifier (a function of the form (list, constraint) -> list)\n",
9494
" along with whether it is a successful shrink or not.\n",
@@ -193,7 +193,7 @@
193193
" s = list(ls)\n",
194194
" del s[i]\n",
195195
" yield list(s)\n",
196-
" \n",
196+
"\n",
197197
" for i in range(len(ls)):\n",
198198
" for x in range(ls[i]):\n",
199199
" s = list(ls)\n",
@@ -1285,9 +1285,9 @@
12851285
"def shrink_integer(n):\n",
12861286
" \"\"\"\n",
12871287
" Shrinker for individual integers.\n",
1288-
" \n",
1288+
"\n",
12891289
" What happens is that we start from the left, first probing upwards in powers of two.\n",
1290-
" \n",
1290+
"\n",
12911291
" When this would take us past our target value we then binary chop towards it.\n",
12921292
" \"\"\"\n",
12931293
" if not n:\n",
@@ -1540,11 +1540,11 @@
15401540
" s = list(ls)\n",
15411541
" s[i] = x\n",
15421542
" yield s\n",
1543-
" \n",
1543+
"\n",
15441544
"def shrink4(ls):\n",
15451545
" yield from shrink_to_prefix(ls)\n",
15461546
" yield from delete_individual_elements(ls)\n",
1547-
" yield from shrink_individual_elements(ls) "
1547+
" yield from shrink_individual_elements(ls)"
15481548
]
15491549
},
15501550
{
@@ -1864,7 +1864,7 @@
18641864
" \"\"\"\n",
18651865
" Look for all sets of shared indices and try to perform a simultaneous shrink on\n",
18661866
" their value, replacing all of them at once.\n",
1867-
" \n",
1867+
"\n",
18681868
" In actual Hypothesis we also try replacing only subsets of the values when there\n",
18691869
" are more than two shared values, but we won't worry about that here.\n",
18701870
" \"\"\"\n",
@@ -2573,22 +2573,23 @@
25732573
" counts = []\n",
25742574
"\n",
25752575
" for ex in dataset:\n",
2576-
" counter = [0]\n",
2577-
" \n",
2576+
" counter = 0\n",
2577+
"\n",
25782578
" def run_and_count(ls):\n",
2579-
" counter[0] += 1\n",
2580-
" if counter[0] > MAX_COUNT:\n",
2581-
" raise MaximumCountExceeded()\n",
2579+
" nonlocal counter\n",
2580+
" counter += 1\n",
2581+
" if counter > MAX_COUNT:\n",
2582+
" raise MaximumCountExceeded\n",
25822583
" return constraint(ls)\n",
2583-
" \n",
2584+
"\n",
25842585
" try:\n",
25852586
" simplifier(ex, run_and_count)\n",
2586-
" counts.extend(counter)\n",
2587+
" counts.append(counter)\n",
25872588
" except MaximumCountExceeded:\n",
25882589
" counts.append(MAX_COUNT + 1)\n",
25892590
" break\n",
25902591
" return counts\n",
2591-
" \n",
2592+
"\n",
25922593
"def worst_case(condition, simplifier):\n",
25932594
" return max(call_counts(condition, simplifier))\n",
25942595
"\n",
@@ -2619,9 +2620,9 @@
26192620
" for h in header:\n",
26202621
" html_fragments.append(\"<th>%s</th>\" % (h,))\n",
26212622
" html_fragments.append(\"</tr>\\n</thead>\\n<tbody>\")\n",
2622-
" \n",
2623+
"\n",
26232624
" for name in conditions:\n",
2624-
" bits = [name.replace(\">\", \"&gt;\")] \n",
2625+
" bits = [name.replace(\">\", \"&gt;\")]\n",
26252626
" for _, simplifier in named_simplifiers:\n",
26262627
" value = worst_case(name, simplifier)\n",
26272628
" if value <= MAX_COUNT:\n",
@@ -4534,7 +4535,7 @@
45344535
" (\"Single pass\", partial(greedy_shrink_with_dedupe,\n",
45354536
" shrink=shrink6)),\n",
45364537
" (\"Multi pass\", multicourse_shrink3)\n",
4537-
" \n",
4538+
"\n",
45384539
"])"
45394540
]
45404541
},
@@ -4622,7 +4623,7 @@
46224623
" (\"Single pass\", partial(greedy_shrink_with_dedupe,\n",
46234624
" shrink=shrink6)),\n",
46244625
" (\"Multi pass\", multicourse_shrink3)\n",
4625-
" \n",
4626+
"\n",
46264627
"])"
46274628
]
46284629
},
@@ -4731,8 +4732,8 @@
47314732
" (\"Single pass\", partial(greedy_shrink_with_dedupe,\n",
47324733
" shrink=shrink6)),\n",
47334734
" (\"Multi pass\", multicourse_shrink3),\n",
4734-
" (\"Multi pass with restart\", multicourse_shrink4) \n",
4735-
" \n",
4735+
" (\"Multi pass with restart\", multicourse_shrink4)\n",
4736+
"\n",
47364737
"])"
47374738
]
47384739
},
@@ -4871,9 +4872,9 @@
48714872
"compare_simplifiers([\n",
48724873
" (\"Single pass\", partial(greedy_shrink_with_dedupe,\n",
48734874
" shrink=shrink6)),\n",
4874-
" (\"Multi pass\", multicourse_shrink3), \n",
4875+
" (\"Multi pass\", multicourse_shrink3),\n",
48754876
" (\"Multi pass with restart\", multicourse_shrink4),\n",
4876-
" (\"Multi pass with variable restart\", multicourse_shrink5) \n",
4877+
" (\"Multi pass with variable restart\", multicourse_shrink5)\n",
48774878
"])"
48784879
]
48794880
},

requirements/coverage.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fakeredis==2.23.5
3030
# via -r requirements/coverage.in
3131
iniconfig==2.0.0
3232
# via pytest
33-
lark==1.1.9
33+
lark==1.2.2
3434
# via -r requirements/coverage.in
3535
libcst==1.4.0
3636
# via -r requirements/coverage.in
@@ -76,7 +76,7 @@ pytz==2024.1
7676
# via
7777
# -r requirements/coverage.in
7878
# pandas
79-
pyyaml==6.0.1
79+
pyyaml==6.0.2
8080
# via libcst
8181
redis==5.0.8
8282
# via fakeredis

requirements/fuzzing.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ flask==3.0.3
5656
# via dash
5757
hypofuzz==24.2.3
5858
# via -r requirements/fuzzing.in
59-
hypothesis[cli]==6.108.9
59+
hypothesis[cli]==6.111.1
6060
# via hypofuzz
6161
idna==3.7
6262
# via requests
@@ -68,7 +68,7 @@ itsdangerous==2.2.0
6868
# via flask
6969
jinja2==3.1.4
7070
# via flask
71-
lark==1.1.9
71+
lark==1.2.2
7272
# via -r requirements/coverage.in
7373
libcst==1.4.0
7474
# via
@@ -136,7 +136,7 @@ pytz==2024.1
136136
# via
137137
# -r requirements/coverage.in
138138
# pandas
139-
pyyaml==6.0.1
139+
pyyaml==6.0.2
140140
# via libcst
141141
redis==5.0.8
142142
# via fakeredis
@@ -178,9 +178,9 @@ werkzeug==3.0.3
178178
# via
179179
# dash
180180
# flask
181-
zipp==3.19.2
181+
zipp==3.20.0
182182
# via importlib-metadata
183183

184184
# The following packages are considered to be unsafe in a requirements file:
185-
setuptools==72.1.0
185+
setuptools==72.2.0
186186
# via dash

requirements/tools.txt

+15-15
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ attrs==24.1.0
1616
# via hypothesis (hypothesis-python/setup.py)
1717
autoflake==2.3.1
1818
# via shed
19-
babel==2.15.0
19+
babel==2.16.0
2020
# via sphinx
2121
backports-tarfile==1.2.0
2222
# via jaraco-context
@@ -32,7 +32,7 @@ cachetools==5.4.0
3232
# via tox
3333
certifi==2024.7.4
3434
# via requests
35-
cffi==1.16.0
35+
cffi==1.17.0
3636
# via cryptography
3737
chardet==5.2.0
3838
# via tox
@@ -59,7 +59,7 @@ decorator==5.1.1
5959
# via ipython
6060
distlib==0.3.8
6161
# via virtualenv
62-
django==5.0.7
62+
django==5.1
6363
# via -r requirements/tools.in
6464
docutils==0.20.1
6565
# via
@@ -121,13 +121,13 @@ jsonpointer==3.0.0
121121
# via sphinx-jsonschema
122122
keyring==25.3.0
123123
# via twine
124-
lark==1.1.9
124+
lark==1.2.2
125125
# via -r requirements/tools.in
126126
libcst==1.4.0
127127
# via
128128
# -r requirements/tools.in
129129
# shed
130-
markdown==3.6
130+
markdown==3.7
131131
# via pelican
132132
markdown-it-py==3.0.0
133133
# via rich
@@ -137,7 +137,7 @@ matplotlib-inline==0.1.7
137137
# via ipython
138138
mdurl==0.1.2
139139
# via markdown-it-py
140-
more-itertools==10.3.0
140+
more-itertools==10.4.0
141141
# via
142142
# jaraco-classes
143143
# jaraco-functools
@@ -207,7 +207,7 @@ pyproject-hooks==1.1.0
207207
# via
208208
# build
209209
# pip-tools
210-
pyright==1.1.374
210+
pyright==1.1.376
211211
# via -r requirements/tools.in
212212
pytest==8.3.2
213213
# via -r requirements/tools.in
@@ -219,7 +219,7 @@ pytz==2024.1
219219
# via feedgenerator
220220
pyupgrade==3.17.0
221221
# via shed
222-
pyyaml==6.0.1
222+
pyyaml==6.0.2
223223
# via
224224
# libcst
225225
# sphinx-jsonschema
@@ -242,7 +242,7 @@ rich==13.7.1
242242
# via
243243
# pelican
244244
# twine
245-
ruff==0.5.6
245+
ruff==0.6.1
246246
# via -r requirements/tools.in
247247
secretstorage==3.3.3
248248
# via keyring
@@ -258,7 +258,7 @@ snowballstemmer==2.2.0
258258
# via sphinx
259259
sortedcontainers==2.4.0
260260
# via hypothesis (hypothesis-python/setup.py)
261-
soupsieve==2.5
261+
soupsieve==2.6
262262
# via beautifulsoup4
263263
sphinx==7.4.7
264264
# via
@@ -310,7 +310,7 @@ tomli==2.0.1
310310
# pytest
311311
# sphinx
312312
# tox
313-
tox==4.17.0
313+
tox==4.18.0
314314
# via -r requirements/tools.in
315315
traitlets==5.14.3
316316
# via
@@ -328,7 +328,7 @@ types-pytz==2024.1.0.20240417
328328
# via -r requirements/tools.in
329329
types-redis==4.6.0.20240806
330330
# via -r requirements/tools.in
331-
types-setuptools==71.1.0.20240806
331+
types-setuptools==71.1.0.20240813
332332
# via types-cffi
333333
typing-extensions==4.12.2
334334
# via
@@ -346,17 +346,17 @@ urllib3==2.2.2
346346
# twine
347347
virtualenv==20.26.3
348348
# via tox
349-
watchfiles==0.22.0
349+
watchfiles==0.23.0
350350
# via pelican
351351
wcwidth==0.2.13
352352
# via prompt-toolkit
353353
wheel==0.44.0
354354
# via pip-tools
355-
zipp==3.19.2
355+
zipp==3.20.0
356356
# via importlib-metadata
357357

358358
# The following packages are considered to be unsafe in a requirements file:
359359
pip==24.2
360360
# via pip-tools
361-
setuptools==72.1.0
361+
setuptools==72.2.0
362362
# via pip-tools

tooling/src/hypothesistooling/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def run_tox(task, version, *args):
450450
"3.9": "3.9.19",
451451
"3.10": "3.10.14",
452452
"3.11": "3.11.9",
453-
"3.12": "3.12.4",
453+
"3.12": "3.12.5",
454454
"3.13": "3.13.0rc1",
455455
"3.13t": "3.13t-dev",
456456
"3.14": "3.14-dev",

0 commit comments

Comments
 (0)