Skip to content

Commit d2df48c

Browse files
Kriechipgjones
authored andcommitted
fix tox envs with broken dependencies
1 parent fb03ed3 commit d2df48c

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

test/test_extensions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import wsproto.extensions as wpext
2-
import wsproto.frame_protocol as fp
1+
from wsproto import extensions as wpext, frame_protocol as fp
32

43

54
class TestExtension:

test/test_frame_protocol.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
import itertools
43
import struct
54
from binascii import unhexlify
@@ -8,8 +7,7 @@
87

98
import pytest
109

11-
import wsproto.extensions as wpext
12-
import wsproto.frame_protocol as fp
10+
from wsproto import extensions as wpext, frame_protocol as fp
1311

1412

1513
class TestBuffer:

test/test_permessage_deflate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# -*- coding: utf-8 -*-
2-
32
import zlib
43
from typing import cast, Dict, Optional, Sequence, TYPE_CHECKING, Union
54

65
import pytest
76
from _pytest.monkeypatch import MonkeyPatch
87

9-
import wsproto.extensions as wpext
10-
import wsproto.frame_protocol as fp
8+
from wsproto import extensions as wpext, frame_protocol as fp
119

1210
if TYPE_CHECKING:
1311
from mypy_extensions import TypedDict

tox.ini

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ commands =
2727
[testenv:format]
2828
basepython = python3.8
2929
deps =
30-
black
31-
isort
30+
black==19.10b0
31+
isort==5.0.3
3232
commands =
3333
black --check --diff src/wsproto/ test/ example/ compliance/
34-
isort --dont-skip __init__.py --diff --check --settings-path setup.cfg --recursive src/wsproto test example compliance
34+
isort --check --diff src/wsproto/ test/ example/ compliance/
3535

3636
[testenv:mypy]
3737
basepython = python3.8
@@ -42,12 +42,13 @@ commands =
4242
[testenv:lint]
4343
basepython = python3.8
4444
deps =
45-
prospector
45+
prospector==1.3.0
4646
commands = prospector
4747

4848
[testenv:docs]
4949
basepython = python3.8
50-
deps = sphinx==3.0.3
50+
deps =
51+
sphinx==3.0.3
5152
whitelist_externals = make
5253
changedir = {toxinidir}/docs
5354
commands =

0 commit comments

Comments
 (0)