Skip to content

Commit 50463aa

Browse files
committed
Update import formatting
1 parent 4f7ddea commit 50463aa

File tree

6 files changed

+16
-22
lines changed

6 files changed

+16
-22
lines changed

deps/check.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pyflakes==2.2.0 # via autoflake, flake8
3535
pyupgrade==2.7.0 # via shed
3636
pyyaml==5.3.1 # via bandit
3737
regex==2020.6.8 # via black
38-
shed==0.0.5 # via -r deps/check.in
38+
shed==0.1.1 # via -r deps/check.in
3939
six==1.15.0 # via bandit, flake8-print
4040
smmap==3.0.4 # via gitdb
4141
snowballstemmer==2.0.0 # via pydocstyle

src/hypothesis_jsonschema/_from_schema.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
from fractions import Fraction
88
from typing import Any, Callable, Dict, List, NoReturn, Optional, Set, Union
99

10-
import hypothesis.internal.conjecture.utils as cu
11-
import hypothesis.provisional as prov
12-
import hypothesis.strategies as st
1310
import jsonschema
14-
from hypothesis import assume
11+
from hypothesis import assume, provisional as prov, strategies as st
1512
from hypothesis.errors import InvalidArgument
13+
from hypothesis.internal.conjecture import utils as cu
1614

1715
from ._canonicalise import (
1816
FALSEY,

tests/gen_schemas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import re
44
from typing import Any, Dict, List, Union
55

6-
import hypothesis.strategies as st
76
import jsonschema
87
import pytest
9-
from hypothesis import assume
8+
from hypothesis import assume, strategies as st
109

1110
from hypothesis_jsonschema._canonicalise import JSONType, Schema, encode_canonical_json
1211
from hypothesis_jsonschema._from_schema import (

tests/test_canonicalise.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
import json
44

5-
import hypothesis.strategies as st
65
import jsonschema
76
import pytest
8-
from hypothesis import HealthCheck, assume, given, note, settings
7+
from gen_schemas import gen_number, json_schemata, schema_strategy_params
8+
from hypothesis import HealthCheck, assume, given, note, settings, strategies as st
99
from hypothesis.errors import InvalidArgument
1010

11-
from gen_schemas import gen_number, json_schemata, schema_strategy_params
1211
from hypothesis_jsonschema import from_schema
1312
from hypothesis_jsonschema._canonicalise import (
1413
FALSEY,

tests/test_from_schema.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@
33
import json
44
from pathlib import Path
55

6-
import hypothesis.strategies as st
76
import jsonschema
87
import pytest
98
import strict_rfc3339
10-
from hypothesis import HealthCheck, assume, given, note, reject, settings
9+
from gen_schemas import schema_strategy_params
10+
from hypothesis import (
11+
HealthCheck,
12+
assume,
13+
given,
14+
note,
15+
reject,
16+
settings,
17+
strategies as st,
18+
)
1119
from hypothesis.errors import FailedHealthCheck, InvalidArgument
1220
from hypothesis.internal.reflection import proxies
1321

14-
from gen_schemas import schema_strategy_params
1522
from hypothesis_jsonschema._canonicalise import (
1623
HypothesisRefResolutionError,
1724
canonicalish,

tox.ini

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ addopts =
6262
ignore = D1,E501,W503,S101,S310
6363
exclude = .*/,__pycache__
6464

65-
[isort]
66-
known_first_party = hypothesis_jsonschema, gen_schemas
67-
default_section = THIRDPARTY
68-
multi_line_output = 3
69-
include_trailing_comma = True
70-
force_grid_wrap = 0
71-
combine_as_imports = True
72-
line_length = 88
73-
7465
[mypy]
7566
python_version = 3.6
7667
platform = linux

0 commit comments

Comments
 (0)