Skip to content

Commit

Permalink
Merge pull request #3877 from HypothesisWorks/create-pull-request/patch
Browse files Browse the repository at this point in the history
Update pinned dependencies
  • Loading branch information
Zac-HD committed Feb 12, 2024
2 parents 2ae364a + 5962a66 commit 7b11122
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 18 deletions.
4 changes: 4 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RELEASE_TYPE: patch

This patch updates our vendored `list of top-level domains <https://www.iana.org/domains/root/db>`__,
which is used by the provisional :func:`~hypothesis.provisional.domains` strategy.
13 changes: 8 additions & 5 deletions hypothesis-python/src/hypothesis/extra/_patching.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, context, fn_examples, strip_via=(), dec="example", width=88):

# Codemod the failing examples to Call nodes usable as decorators
self.fn_examples = {
k: tuple(self.__call_node_to_example_dec(ex, via) for ex, via in nodes)
k: tuple(d for x in nodes if (d := self.__call_node_to_example_dec(*x)))
for k, nodes in fn_examples.items()
}

Expand Down Expand Up @@ -116,10 +116,13 @@ def __call_node_to_example_dec(self, node, via):
args=[cst.Arg(cst.SimpleString(repr(via)))],
)
if black: # pragma: no branch
pretty = black.format_str(
cst.Module([]).code_for_node(via),
mode=black.FileMode(line_length=self.line_length),
)
try:
pretty = black.format_str(
cst.Module([]).code_for_node(via),
mode=black.FileMode(line_length=self.line_length),
)
except ImportError:
return None # See https://github.com/psf/black/pull/4224
via = cst.parse_expression(pretty.strip())
return cst.Decorator(via)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Version 2024020300, Last Updated Sat Feb 3 07:07:01 2024 UTC
# Version 2024021000, Last Updated Sat Feb 10 07:07:02 2024 UTC
AAA
AARP
ABB
Expand Down Expand Up @@ -260,7 +260,6 @@ COFFEE
COLLEGE
COLOGNE
COM
COMCAST
COMMBANK
COMMUNITY
COMPANY
Expand Down Expand Up @@ -1274,7 +1273,6 @@ WTC
WTF
XBOX
XEROX
XFINITY
XIHUAN
XIN
XN--11B4C3D
Expand Down
2 changes: 1 addition & 1 deletion requirements/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mypy-extensions==1.0.0
# via
# black
# typing-inspect
numpy==1.26.3
numpy==1.26.4
# via
# -r requirements/coverage.in
# pandas
Expand Down
6 changes: 3 additions & 3 deletions requirements/fuzzing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ fakeredis==2.21.0
# via -r requirements/coverage.in
flask==3.0.2
# via dash
hypofuzz==24.2.1
hypofuzz==24.2.2
# via -r requirements/fuzzing.in
hypothesis[cli]==6.97.5
hypothesis[cli]==6.98.3
# via
# hypofuzz
# hypothesis
Expand Down Expand Up @@ -90,7 +90,7 @@ mypy-extensions==1.0.0
# typing-inspect
nest-asyncio==1.6.0
# via dash
numpy==1.26.3
numpy==1.26.4
# via
# -r requirements/coverage.in
# pandas
Expand Down
8 changes: 4 additions & 4 deletions requirements/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ decorator==5.1.1
# via ipython
distlib==0.3.8
# via virtualenv
django==5.0.1
django==5.0.2
# via -r requirements/tools.in
docutils==0.20.1
# via
Expand Down Expand Up @@ -89,7 +89,7 @@ ipython==8.21.0
# via -r requirements/tools.in
isort==5.13.2
# via shed
jaraco-classes==3.3.0
jaraco-classes==3.3.1
# via keyring
jedi==0.19.1
# via ipython
Expand Down Expand Up @@ -177,7 +177,7 @@ pyproject-api==1.6.1
# via tox
pyproject-hooks==1.0.0
# via build
pyright==1.1.349
pyright==1.1.350
# via -r requirements/tools.in
pytest==8.0.0
# via -r requirements/tools.in
Expand Down Expand Up @@ -206,7 +206,7 @@ rfc3986==2.0.0
# via twine
rich==13.7.0
# via twine
ruff==0.2.0
ruff==0.2.1
# via -r requirements/tools.in
secretstorage==3.3.3
# via keyring
Expand Down
4 changes: 2 additions & 2 deletions tooling/src/hypothesistooling/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ def run_tox(task, version, *args):
"3.8": "3.8.18",
"3.9": "3.9.18",
"3.10": "3.10.13",
"3.11": "3.11.7",
"3.12": "3.12.1",
"3.11": "3.11.8",
"3.12": "3.12.2",
"3.13": "3.13.0a3",
"pypy3.8": "pypy3.8-7.3.11",
"pypy3.9": "pypy3.9-7.3.15",
Expand Down

0 comments on commit 7b11122

Please sign in to comment.