From 0523d4c94f9e44710185d368d8b9788e251fc955 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Sat, 12 Oct 2024 12:49:14 -0700 Subject: [PATCH] disable R0917 pylint failures --- meshtastic/mesh_interface.py | 1 + meshtastic/supported_device.py | 1 + meshtastic/tcp_interface.py | 1 + meshtastic/tests/test_main.py | 2 +- meshtastic/tests/test_serial_interface.py | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index db057a3..ee0d505 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -1,5 +1,6 @@ """Mesh Interface class """ +# pylint: disable=R0917 import collections import json diff --git a/meshtastic/supported_device.py b/meshtastic/supported_device.py index f4c2b35..8f491fb 100755 --- a/meshtastic/supported_device.py +++ b/meshtastic/supported_device.py @@ -1,6 +1,7 @@ """ Supported Meshtastic Devices - This is a class and collection of Meshtastic devices. It is used for auto detection as to which device might be connected. """ +# pylint: disable=R0917 # Goal is to detect which device and port to use from the supported devices # without installing any libraries that are not currently in the python meshtastic library diff --git a/meshtastic/tcp_interface.py b/meshtastic/tcp_interface.py index 7b588c6..8ccb021 100644 --- a/meshtastic/tcp_interface.py +++ b/meshtastic/tcp_interface.py @@ -1,5 +1,6 @@ """TCPInterface class for interfacing with http endpoint """ +# pylint: disable=R0917 import logging import socket from typing import Optional diff --git a/meshtastic/tests/test_main.py b/meshtastic/tests/test_main.py index 6fe5c67..86d3ad2 100644 --- a/meshtastic/tests/test_main.py +++ b/meshtastic/tests/test_main.py @@ -1,5 +1,5 @@ """Meshtastic unit tests for __main__.py""" -# pylint: disable=C0302,W0613 +# pylint: disable=C0302,W0613,R0917 import logging import os diff --git a/meshtastic/tests/test_serial_interface.py b/meshtastic/tests/test_serial_interface.py index 797c6d7..26faf08 100644 --- a/meshtastic/tests/test_serial_interface.py +++ b/meshtastic/tests/test_serial_interface.py @@ -1,4 +1,5 @@ """Meshtastic unit tests for serial_interface.py""" +# pylint: disable=R0917 import re from unittest.mock import mock_open, patch