Skip to content

Commit

Permalink
Merge pull request #3571 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 authored Feb 5, 2023
2 parents 600fc8a + d95bf37 commit 68f8ffa
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 39 deletions.
3 changes: 3 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RELEASE_TYPE: patch

This patch updates our autoformatting tools, improving our code style without any API changes.
3 changes: 0 additions & 3 deletions hypothesis-python/docs/stateful.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ Initializes are typically useful to populate bundles:
class NumberModifier(RuleBasedStateMachine):
folders = Bundle("folders")
files = Bundle("files")
Expand Down Expand Up @@ -270,7 +269,6 @@ that returns True or False based on the RuleBasedStateMachine instance.
class NumberModifier(RuleBasedStateMachine):
num = 0
@rule()
Expand Down Expand Up @@ -307,7 +305,6 @@ decorator that marks a function to be run after every step.
class NumberModifier(RuleBasedStateMachine):
num = 0
@rule()
Expand Down
7 changes: 3 additions & 4 deletions hypothesis-python/src/hypothesis/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ def run(data):
with local_settings(self.settings):
with deterministic_PRNG():
with BuildContext(data, is_final=is_final) as context:

# Generate all arguments to the test function.
args, kwargs = data.draw(self.search_strategy)
if expected_failure is not None:
Expand Down Expand Up @@ -1399,9 +1398,9 @@ def wrapped_test(*arguments, **kwargs):
if not (ran_explicit_examples or state.ever_executed):
raise SKIP_BECAUSE_NO_EXAMPLES

def _get_fuzz_target() -> Callable[
[Union[bytes, bytearray, memoryview, BinaryIO]], Optional[bytes]
]:
def _get_fuzz_target() -> (
Callable[[Union[bytes, bytearray, memoryview, BinaryIO]], Optional[bytes]]
):
# Because fuzzing interfaces are very performance-sensitive, we use a
# somewhat more complicated structure here. `_get_fuzz_target()` is
# called by the `HypothesisHandle.fuzz_one_input` property, allowing
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/src/hypothesis/extra/ghostwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,6 @@ def ufunc(


def _make_ufunc_body(func, *, except_, style, annotate):

import hypothesis.extra.numpy as npst

if func.signature is None:
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/src/hypothesis/extra/pandas/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def infer_dtype_if_necessary(dtype, values, elements, draw):

@check_function
def elements_and_dtype(elements, dtype, source=None):

if source is None:
prefix = ""
else:
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/src/hypothesis/internal/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def get_type_hints(thing):
and is_a_type(p.annotation)
and p.annotation is not p.empty
):

p_hint = p.annotation

# Defer to `get_type_hints` if signature annotation is, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ class Sampler:
table: List[Tuple[int, int, float]] # (base_idx, alt_idx, alt_chance)

def __init__(self, weights: Sequence[float]):

n = len(weights)

table: "list[list[int | float | None]]" = [[i, None, None] for i in range(n)]
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/tests/conjecture/test_choice_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def all_filtered(chooser):


def test_skips_over_exhausted_children():

results = []

def f(chooser):
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/tests/cover/test_async_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


class TestAsyncioRun(TestCase):

timeout = 5

def execute_example(self, f):
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/tests/cover/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def coro_decorator(f):


class TestAsyncio(TestCase):

timeout = 5

def setUp(self):
Expand Down
1 change: 1 addition & 0 deletions hypothesis-python/tests/cover/test_custom_reprs.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def inner(a, b):
def test_reprs_as_created_consistent_calls_despite_indentation():
aas = "a" * 60
strat = st.builds(some_foo, st.just(aas))

# If we have multiple calls which return the same object, we can print their
# nice repr even if varying indentation means that they'll come out different!
@given(strat, st.builds(Bar, strat))
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/tests/cover/test_pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _repr_pretty_(self, p, cycle):
p.text("MyList(...)")
else:
with p.group(3, "MyList(", ")"):
for (i, child) in enumerate(self.content):
for i, child in enumerate(self.content):
if i:
p.text(",")
p.breakable()
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/tests/cover/test_random_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def test(r):

def test_find_does_not_pollute_state():
with deterministic_PRNG():

find(st.random_module(), lambda r: True)
state_a = random.getstate()
state_a2 = core._hypothesis_global_random.getstate()
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/tests/cover/test_verbosity.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def test_includes_progress_in_verbose_mode():


def test_prints_initial_attempts_on_find():

with capture_verbosity() as o:

def foo():
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/tests/numpy/test_gen_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,6 @@ def test_mutually_broadcastable_shapes_can_generate_arbitrary_ndims(
def test_mutually_broadcastable_shapes_can_generate_interesting_singletons(
base_shape, max_dims
):

find_any(
nps.mutually_broadcastable_shapes(
num_shapes=2,
Expand Down
1 change: 0 additions & 1 deletion hypothesis-python/tests/quality/test_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def normalize_kwargs(request):
ids=repr,
)
def test_common_strategies_normalize_small_values(strategy, n, normalize_kwargs):

excluded = list(map(repr, islice(iter_values(strategy, unique_by=repr), n)))

def test_function(data):
Expand Down
10 changes: 6 additions & 4 deletions requirements/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ attrs==22.2.0
# via
# hypothesis (hypothesis-python/setup.py)
# pytest
black==22.12.0
black==23.1.0
# via -r requirements/coverage.in
click==8.1.3
# via
Expand All @@ -26,15 +26,15 @@ exceptiongroup==1.1.0 ; python_version < "3.11"
# pytest
execnet==1.9.0
# via pytest-xdist
fakeredis==2.6.0
fakeredis==2.7.1
# via -r requirements/coverage.in
iniconfig==2.0.0
# via pytest
lark==1.1.5
# via -r requirements/coverage.in
libcst==0.4.9
# via -r requirements/coverage.in
mypy-extensions==0.4.3
mypy-extensions==1.0.0
# via
# black
# typing-inspect
Expand All @@ -43,7 +43,9 @@ numpy==1.24.1
# -r requirements/coverage.in
# pandas
packaging==23.0
# via pytest
# via
# black
# pytest
pandas==1.5.3
# via -r requirements/coverage.in
pathspec==0.11.0
Expand Down
33 changes: 17 additions & 16 deletions requirements/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ attrs==22.2.0
# flake8-bugbear
# hypothesis (hypothesis-python/setup.py)
# pytest
autoflake==2.0.0
autoflake==2.0.1
# via shed
babel==2.11.0
# via sphinx
backcall==0.2.0
# via ipython
bandit==1.7.4
# via flake8-bandit
beautifulsoup4==4.11.1
beautifulsoup4==4.11.2
# via sphinx-codeautolink
black==22.12.0
black==23.1.0
# via shed
bleach==6.0.0
# via readme-renderer
Expand Down Expand Up @@ -64,7 +64,7 @@ decorator==5.1.1
# via ipython
distlib==0.3.6
# via virtualenv
django==4.1.5
django==4.1.6
# via -r requirements/tools.in
docutils==0.19
# via
Expand Down Expand Up @@ -176,7 +176,7 @@ more-itertools==9.0.0
# via jaraco-classes
mypy==0.991
# via -r requirements/tools.in
mypy-extensions==0.4.3
mypy-extensions==1.0.0
# via
# black
# mypy
Expand All @@ -185,6 +185,7 @@ nodeenv==1.7.0
# via pyright
packaging==23.0
# via
# black
# build
# pyproject-api
# pytest
Expand All @@ -200,9 +201,9 @@ pexpect==4.8.0
# via ipython
pickleshare==0.7.5
# via ipython
pip==22.3.1
pip==23.0
# via pip-tools
pip-tools==6.12.1
pip-tools==6.12.2
# via -r requirements/tools.in
pkginfo==1.9.6
# via twine
Expand Down Expand Up @@ -241,7 +242,7 @@ pyproject-api==1.5.0
# via tox
pyproject-hooks==1.0.0
# via build
pyright==1.1.291
pyright==1.1.292
# via -r requirements/tools.in
pytest==7.2.1
# via -r requirements/tools.in
Expand Down Expand Up @@ -273,12 +274,12 @@ rich==13.3.1
# via twine
secretstorage==3.3.3
# via keyring
setuptools==67.0.0
setuptools==67.1.0
# via
# nodeenv
# pip-tools
# sphinxcontrib-jquery
shed==0.10.8
shed==0.10.9
# via -r requirements/tools.in
six==1.16.0
# via
Expand All @@ -301,7 +302,7 @@ sphinx==6.1.3
# sphinx-codeautolink
# sphinx-hoverxref
# sphinx-rtd-theme
sphinx-codeautolink==0.14.0
sphinx-codeautolink==0.14.1
# via -r requirements/tools.in
sphinx-hoverxref==1.3.0
# via -r requirements/tools.in
Expand All @@ -313,7 +314,7 @@ sphinxcontrib-applehelp==1.0.4
# via sphinx
sphinxcontrib-devhelp==1.0.2
# via sphinx
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-htmlhelp==2.0.1
# via sphinx
sphinxcontrib-jquery==3.0.0
# via sphinx-hoverxref
Expand Down Expand Up @@ -341,9 +342,9 @@ tomli==2.0.1
# pyproject-hooks
# pytest
# tox
tox==4.4.2
tox==4.4.4
# via -r requirements/tools.in
traitlets==5.8.1
traitlets==5.9.0
# via
# ipython
# matplotlib-inline
Expand All @@ -357,7 +358,7 @@ types-pyopenssl==23.0.0.2
# via types-redis
types-pytz==2022.7.1.0
# via -r requirements/tools.in
types-redis==4.4.0.4
types-redis==4.4.0.6
# via -r requirements/tools.in
typing-extensions==4.4.0
# via
Expand All @@ -381,5 +382,5 @@ webencodings==0.5.1
# via bleach
wheel==0.38.4
# via pip-tools
zipp==3.12.0
zipp==3.12.1
# via importlib-metadata

0 comments on commit 68f8ffa

Please sign in to comment.