Skip to content

Commit 7d6d048

Browse files
authored
Merge pull request #2489 from HypothesisWorks/pyup-scheduled-update-2020-07-13
Scheduled weekly dependency update for week 28
2 parents d204ac4 + 7c6df57 commit 7d6d048

File tree

131 files changed

+210
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+210
-258
lines changed

.isort.cfg

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
[settings]
2-
default_section = THIRDPARTY
32
known_first_party = hypothesis, hypothesistooling, tests
4-
multi_line_output = 3
5-
include_trailing_comma = True
6-
force_grid_wrap = 0
3+
profile = black
74
combine_as_imports = True
8-
line_length = 88

hypothesis-python/RELEASE.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RELEASE_TYPE: patch
2+
3+
This patch updates our formatting to use :pypi:`isort` 5.
4+
There is no user-visible change.

hypothesis-python/examples/test_binary_search.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
should change (or not) in response to movements in the underlying data.
2424
"""
2525

26-
import hypothesis.strategies as st
27-
from hypothesis import given
26+
from hypothesis import given, strategies as st
2827

2928

3029
def binary_search(ls, v):

hypothesis-python/examples/test_rle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
underlying data.
2828
"""
2929

30-
import hypothesis.strategies as st
31-
from hypothesis import assume, given
30+
from hypothesis import assume, given, strategies as st
3231

3332

3433
def run_length_encode(seq):

hypothesis-python/src/hypothesis/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
import attr
3636

37-
import hypothesis.strategies as st
37+
from hypothesis import strategies as st
3838
from hypothesis._settings import (
3939
HealthCheck,
4040
Phase,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
from dateutil import tz, zoneinfo # type: ignore
3030

31-
import hypothesis.strategies._internal.core as st
31+
from hypothesis.strategies._internal import core as st
3232

3333
__all__ = ["timezones"]
3434

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
from typing import Any, Callable, Dict, Type, TypeVar, Union
2121

2222
import django
23-
import django.db.models as dm
24-
import django.forms as df
23+
from django import forms as df
2524
from django.core.validators import (
2625
validate_ipv4_address,
2726
validate_ipv6_address,
2827
validate_ipv46_address,
2928
)
29+
from django.db import models as dm
3030

31-
import hypothesis.strategies as st
31+
from hypothesis import strategies as st
3232
from hypothesis.errors import InvalidArgument
3333
from hypothesis.extra.pytz import timezones
3434
from hypothesis.internal.validation import check_type

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@
1919
from inspect import Parameter, signature
2020
from typing import Type, Union
2121

22-
import django.db.models as dm
23-
import django.forms as df
24-
import django.test as dt
22+
from django import forms as df, test as dt
2523
from django.core.exceptions import ValidationError
26-
from django.db import IntegrityError
24+
from django.db import IntegrityError, models as dm
2725

28-
import hypothesis.strategies._internal.core as st
2926
from hypothesis import reject
3027
from hypothesis._settings import note_deprecation
3128
from hypothesis.errors import InvalidArgument
3229
from hypothesis.extra.django._fields import from_field
30+
from hypothesis.strategies._internal import core as st
3331
from hypothesis.utils.conventions import InferType, infer
3432

3533

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@
4141
import lark
4242
from lark.grammar import NonTerminal, Terminal
4343

44-
import hypothesis.strategies._internal.core as st
4544
from hypothesis.errors import InvalidArgument
4645
from hypothesis.internal.conjecture.utils import calc_label_from_name
4746
from hypothesis.internal.reflection import deprecated_posargs
4847
from hypothesis.internal.validation import check_type
49-
from hypothesis.strategies._internal import SearchStrategy
48+
from hypothesis.strategies._internal import SearchStrategy, core as st
5049

5150
__all__ = ["from_lark"]
5251

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919

2020
import numpy as np
2121

22-
import hypothesis.internal.conjecture.utils as cu
23-
import hypothesis.strategies._internal.core as st
2422
from hypothesis import assume
2523
from hypothesis.errors import InvalidArgument
24+
from hypothesis.internal.conjecture import utils as cu
2625
from hypothesis.internal.coverage import check_function
2726
from hypothesis.internal.reflection import deprecated_posargs, proxies
2827
from hypothesis.internal.validation import check_type, check_valid_interval
29-
from hypothesis.strategies._internal import SearchStrategy, check_strategy
28+
from hypothesis.strategies._internal import SearchStrategy, check_strategy, core as st
3029
from hypothesis.strategies._internal.strategies import T
3130
from hypothesis.utils.conventions import UniqueIdentifier, not_set
3231

0 commit comments

Comments
 (0)