From: Francis Guevarra Date: Mon, 29 Jun 2020 16:22:40 +0000 (-0700) Subject: Suppress too-many-locals and too-many-branches pylint for pre-existing API's X-Git-Tag: 5.1.0^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/62062074a51df0076dc4e56a0220bfbc5adafd9f?hp=-c Suppress too-many-locals and too-many-branches pylint for pre-existing API's --- 62062074a51df0076dc4e56a0220bfbc5adafd9f diff --git a/src/adafruit_blinka/microcontroller/nova/i2c.py b/src/adafruit_blinka/microcontroller/nova/i2c.py index f056608..17731fb 100644 --- a/src/adafruit_blinka/microcontroller/nova/i2c.py +++ b/src/adafruit_blinka/microcontroller/nova/i2c.py @@ -87,6 +87,7 @@ class I2C: "Received error response from Binho Nova, result = " + result ) + # pylint: disable=too-many-locals,too-many-branches def writeto_then_readfrom( self, address, @@ -175,4 +176,4 @@ class I2C: ) -# pylint: enable=unused-argument +# pylint: enable=unused-argument,too-many-locals,too-many-branches diff --git a/src/adafruit_blinka/microcontroller/nova/spi.py b/src/adafruit_blinka/microcontroller/nova/spi.py index c9f49a4..e03853d 100644 --- a/src/adafruit_blinka/microcontroller/nova/spi.py +++ b/src/adafruit_blinka/microcontroller/nova/spi.py @@ -139,7 +139,7 @@ class SPI: self.get_received_data(self._nova.transferSPI(0, write_value)) ) - # pylint: disable=too-many-arguments + # pylint: disable=too-many-arguments,too-many-locals,too-many-branches def write_readinto( self, buffer_out, buffer_in, out_start=0, out_end=None, in_start=0, in_end=None ): @@ -212,4 +212,4 @@ class SPI: buffer_in[in_start + i] = data_in i += 1 - # pylint: enable=too-many-arguments + # pylint: enable=too-many-arguments,too-many-locals,too-many-branches