diff --git a/.prospector.yml b/.prospector.yml index 6d2a039..6f06a69 100644 --- a/.prospector.yml +++ b/.prospector.yml @@ -1,6 +1,8 @@ pylint: disable: - cyclic-import + - no-else-break + - no-else-continue - unused-argument - useless-object-inheritance diff --git a/compliance/run-autobahn-tests.py b/compliance/run-autobahn-tests.py index 622a2b5..a594ac0 100644 --- a/compliance/run-autobahn-tests.py +++ b/compliance/run-autobahn-tests.py @@ -203,7 +203,7 @@ def main() -> None: sys.exit(2) coverage_settings = {"coveragerc": "../.coveragerc"} try: - import wsproto + import wsproto # pylint: disable=import-outside-toplevel except ImportError: say("wsproto must be on python path -- set PYTHONPATH or install it") sys.exit(2) diff --git a/tox.ini b/tox.ini index 591f445..e997483 100644 --- a/tox.ini +++ b/tox.ini @@ -40,9 +40,8 @@ commands = [testenv:lint] basepython = python3.6 -# pylint==2.1.1 required due to prospector bug, see https://github.com/PyCQA/prospector/pull/309 deps = - prospector==1.1.7 + prospector commands = prospector [testenv:docs] diff --git a/wsproto/events.py b/wsproto/events.py index f73c878..41b7bed 100644 --- a/wsproto/events.py +++ b/wsproto/events.py @@ -222,7 +222,7 @@ class Message(Event, Generic[T]): @dataclass(frozen=True) -class TextMessage(Message[str]): +class TextMessage(Message[str]): # pylint: disable=unsubscriptable-object """This event is fired when a data frame with TEXT payload is received. Fields: @@ -240,7 +240,7 @@ class TextMessage(Message[str]): @dataclass(frozen=True) -class BytesMessage(Message[bytes]): +class BytesMessage(Message[bytes]): # pylint: disable=unsubscriptable-object """This event is fired when a data frame with BINARY payload is received.