diff --git a/setup.cfg b/setup.cfg index 3784f05..3014d7d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,10 +42,7 @@ exclude = tests,src/example/videostream-cli max-line-length = 128 extend-ignore = E203 max-complexity = 10 -per-file-ignores = - src/gst_signalling/gst_abstract_role.py:E402 - src/gst_signalling/gst_consumer.py:E402 - src/example/datachannel-single-producer-multiple-consumer/producer.py:E402 + [coverage:run] branch=True diff --git a/src/example/datachannel-single-producer-multiple-consumer/producer.py b/src/example/datachannel-single-producer-multiple-consumer/producer.py index 4ccb7ee..02cac97 100644 --- a/src/example/datachannel-single-producer-multiple-consumer/producer.py +++ b/src/example/datachannel-single-producer-multiple-consumer/producer.py @@ -8,10 +8,10 @@ gi.require_version("Gst", "1.0") -from gi.repository import GstWebRTC +from gi.repository import GstWebRTC # noqa : E402 -from gst_signalling import GstSignallingProducer -from gst_signalling.gst_abstract_role import GstSession +from gst_signalling import GstSignallingProducer # noqa : E402 +from gst_signalling.gst_abstract_role import GstSession # noqa : E402 def on_data_channel_message( diff --git a/src/gst_signalling/gst_abstract_role.py b/src/gst_signalling/gst_abstract_role.py index b9c5820..1d0e2c4 100644 --- a/src/gst_signalling/gst_abstract_role.py +++ b/src/gst_signalling/gst_abstract_role.py @@ -10,7 +10,7 @@ gi.require_version("Gst", "1.0") gi.require_version("GstWebRTC", "1.0") -from gi.repository import Gst +from gi.repository import Gst # noqa : E402 GstSession = NamedTuple( "GstSession", diff --git a/src/gst_signalling/gst_consumer.py b/src/gst_signalling/gst_consumer.py index 41bcc5f..d8cddfe 100644 --- a/src/gst_signalling/gst_consumer.py +++ b/src/gst_signalling/gst_consumer.py @@ -7,9 +7,9 @@ gi.require_version("GstWebRTC", "1.0") gi.require_version("GstSdp", "1.0") -from gi.repository import Gst, GstSdp, GstWebRTC +from gi.repository import Gst, GstSdp, GstWebRTC # noqa : E402 -from .gst_abstract_role import GstSession, GstSignallingAbstractRole +from .gst_abstract_role import GstSession, GstSignallingAbstractRole # noqa : E402 class GstSignallingConsumer(GstSignallingAbstractRole):