]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
pylinten
authorbrentru <brent@adafruit.com>
Fri, 24 May 2024 17:46:23 +0000 (13:46 -0400)
committerbrentru <brent@adafruit.com>
Fri, 24 May 2024 17:46:23 +0000 (13:46 -0400)
src/adafruit_blinka/microcontroller/generic_agnostic_board/neopixel.py
src/adafruit_blinka/microcontroller/generic_agnostic_board/spi.py

index c14cbd2b7d6e80c39b68a4ddd6647b82cb2308a5..678fbc5733580e9042a962425d3b3bceff0d8c73 100644 (file)
@@ -3,7 +3,7 @@
 # SPDX-License-Identifier: MIT
 """NeoPixel write mocks for a generic board."""
 
 # SPDX-License-Identifier: MIT
 """NeoPixel write mocks for a generic board."""
 
-
+# pylint: disable=unused-argument
 def neopixel_write(gpio, buf):
     """Mocks a neopixel_write function"""
     # pad output buffer from 3 bpp to 4 bpp
 def neopixel_write(gpio, buf):
     """Mocks a neopixel_write function"""
     # pad output buffer from 3 bpp to 4 bpp
index 3012573f574dbeeec2afe6970f79e1fb1bd15974..a7ca14066f201b4d32fe2e47ba60328d48ec5823 100644 (file)
@@ -37,15 +37,17 @@ class SPI:
         """Return the current frequency"""
         return self._frequency
 
         """Return the current frequency"""
         return self._frequency
 
+    # pylint: disable=unnecessary-pass
     def write(self, buf, start=0, end=None):
         """Write data from the buffer to SPI"""
         pass
 
     def write(self, buf, start=0, end=None):
         """Write data from the buffer to SPI"""
         pass
 
+    # pylint: disable=unnecessary-pass
     def readinto(self, buf, start=0, end=None, write_value=0):
         """Read data from SPI and into the buffer"""
         pass
 
     def readinto(self, buf, start=0, end=None, write_value=0):
         """Read data from SPI and into the buffer"""
         pass
 
-    # pylint: disable=too-many-arguments
+    # pylint: disable=too-many-arguments, unnecessary-pass
     def write_readinto(
         self, buffer_out, buffer_in, out_start=0, out_end=None, in_start=0, in_end=None
     ):
     def write_readinto(
         self, buffer_out, buffer_in, out_start=0, out_end=None, in_start=0, in_end=None
     ):