diff --git a/.pylintrc b/.pylintrc index 54a9d35..3c07cc6 100644 --- a/.pylintrc +++ b/.pylintrc @@ -250,7 +250,7 @@ ignore-comments=yes ignore-docstrings=yes # Ignore imports when computing similarities. -ignore-imports=no +ignore-imports=yes # Minimum lines number of a similarity. min-similarity-lines=4 diff --git a/adafruit_bno08x/__init__.py b/adafruit_bno08x/__init__.py index cf37053..dff7225 100644 --- a/adafruit_bno08x/__init__.py +++ b/adafruit_bno08x/__init__.py @@ -180,7 +180,12 @@ DATA_BUFFER_SIZE = const(512) # data buffer size. obviously eats ram PacketHeader = namedtuple( "PacketHeader", - ["channel_number", "sequence_number", "data_length", "packet_byte_count",], + [ + "channel_number", + "sequence_number", + "data_length", + "packet_byte_count", + ], ) REPORT_ACCURACY_STATUS = [ @@ -478,7 +483,7 @@ def is_error(cls, header): class BNO08X: # pylint: disable=too-many-instance-attributes, too-many-public-methods """Library for the BNO08x IMUs from Hillcrest Laboratories - :param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to. + :param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to. """ diff --git a/adafruit_bno08x/i2c.py b/adafruit_bno08x/i2c.py index 6b9c59e..059f0bd 100644 --- a/adafruit_bno08x/i2c.py +++ b/adafruit_bno08x/i2c.py @@ -16,7 +16,7 @@ class BNO08X_I2C(BNO08X): """Library for the BNO08x IMUs from Hillcrest Laboratories - :param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to. + :param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to. """ diff --git a/adafruit_bno08x/uart.py b/adafruit_bno08x/uart.py index 12a02d2..f968268 100644 --- a/adafruit_bno08x/uart.py +++ b/adafruit_bno08x/uart.py @@ -21,7 +21,7 @@ class BNO08X_UART(BNO08X): """Library for the BNO08x IMUs from Hillcrest Laboratories - :param uart: The UART devce the BNO08x is connected to. + :param uart: The UART devce the BNO08x is connected to. """ diff --git a/examples/bno08x_more_reports.py b/examples/bno08x_more_reports.py index 74718fc..15a6743 100644 --- a/examples/bno08x_more_reports.py +++ b/examples/bno08x_more_reports.py @@ -103,7 +103,11 @@ ) print("Raw Acceleration:") - (raw_accel_x, raw_accel_y, raw_accel_z,) = bno.raw_acceleration + ( + raw_accel_x, + raw_accel_y, + raw_accel_z, + ) = bno.raw_acceleration print( "X: 0x{0:04X} Y: 0x{1:04X} Z: 0x{2:04X} LSB".format( raw_accel_x, raw_accel_y, raw_accel_z @@ -112,7 +116,11 @@ print("") print("Raw Gyro:") - (raw_accel_x, raw_accel_y, raw_accel_z,) = bno.raw_gyro + ( + raw_accel_x, + raw_accel_y, + raw_accel_z, + ) = bno.raw_gyro print( "X: 0x{0:04X} Y: 0x{1:04X} Z: 0x{2:04X} LSB".format( raw_accel_x, raw_accel_y, raw_accel_z @@ -121,7 +129,11 @@ print("") print("Raw Magnetometer:") - (raw_mag_x, raw_mag_y, raw_mag_z,) = bno.raw_magnetic + ( + raw_mag_x, + raw_mag_y, + raw_mag_z, + ) = bno.raw_magnetic print( "X: 0x{0:04X} Y: 0x{1:04X} Z: 0x{2:04X} LSB".format( raw_mag_x, raw_mag_y, raw_mag_z diff --git a/setup.py b/setup.py index 8a9fabc..fc3da88 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,10 @@ # Author details author="Adafruit Industries", author_email="circuitpython@adafruit.com", - install_requires=["Adafruit-Blinka", "adafruit-circuitpython-busdevice",], + install_requires=[ + "Adafruit-Blinka", + "adafruit-circuitpython-busdevice", + ], # Choose your license license="MIT", # See https://pypi.python.org/pypi?%3Aaction=list_classifiers