Skip to content

Commit

Permalink
enhancement #36: ignore flake8 false error
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienDanieau committed Feb 1, 2024
1 parent 96bdbf2 commit b1836d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/gst_signalling/gst_abstract_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/gst_signalling/gst_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b1836d7

Please sign in to comment.