Skip to content

Commit 6bcf0ec

Browse files
authored
Merge pull request #17 from FoamyGuy/pylintrc
pylintrc ignore imports. run black format
2 parents c6bfebd + 54dfa83 commit 6bcf0ec

File tree

6 files changed

+29
-9
lines changed

6 files changed

+29
-9
lines changed

.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ ignore-comments=yes
250250
ignore-docstrings=yes
251251

252252
# Ignore imports when computing similarities.
253-
ignore-imports=no
253+
ignore-imports=yes
254254

255255
# Minimum lines number of a similarity.
256256
min-similarity-lines=4

adafruit_bno08x/__init__.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,12 @@
180180
DATA_BUFFER_SIZE = const(512) # data buffer size. obviously eats ram
181181
PacketHeader = namedtuple(
182182
"PacketHeader",
183-
["channel_number", "sequence_number", "data_length", "packet_byte_count",],
183+
[
184+
"channel_number",
185+
"sequence_number",
186+
"data_length",
187+
"packet_byte_count",
188+
],
184189
)
185190

186191
REPORT_ACCURACY_STATUS = [
@@ -478,7 +483,7 @@ def is_error(cls, header):
478483
class BNO08X: # pylint: disable=too-many-instance-attributes, too-many-public-methods
479484
"""Library for the BNO08x IMUs from Hillcrest Laboratories
480485
481-
:param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to.
486+
:param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to.
482487
483488
"""
484489

adafruit_bno08x/i2c.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class BNO08X_I2C(BNO08X):
1717
"""Library for the BNO08x IMUs from Hillcrest Laboratories
1818
19-
:param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to.
19+
:param ~busio.I2C i2c_bus: The I2C bus the BNO08x is connected to.
2020
2121
"""
2222

adafruit_bno08x/uart.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class BNO08X_UART(BNO08X):
2222
"""Library for the BNO08x IMUs from Hillcrest Laboratories
2323
24-
:param uart: The UART devce the BNO08x is connected to.
24+
:param uart: The UART devce the BNO08x is connected to.
2525
2626
"""
2727

examples/bno08x_more_reports.py

+15-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@
103103
)
104104

105105
print("Raw Acceleration:")
106-
(raw_accel_x, raw_accel_y, raw_accel_z,) = bno.raw_acceleration
106+
(
107+
raw_accel_x,
108+
raw_accel_y,
109+
raw_accel_z,
110+
) = bno.raw_acceleration
107111
print(
108112
"X: 0x{0:04X} Y: 0x{1:04X} Z: 0x{2:04X} LSB".format(
109113
raw_accel_x, raw_accel_y, raw_accel_z
@@ -112,7 +116,11 @@
112116
print("")
113117

114118
print("Raw Gyro:")
115-
(raw_accel_x, raw_accel_y, raw_accel_z,) = bno.raw_gyro
119+
(
120+
raw_accel_x,
121+
raw_accel_y,
122+
raw_accel_z,
123+
) = bno.raw_gyro
116124
print(
117125
"X: 0x{0:04X} Y: 0x{1:04X} Z: 0x{2:04X} LSB".format(
118126
raw_accel_x, raw_accel_y, raw_accel_z
@@ -121,7 +129,11 @@
121129
print("")
122130

123131
print("Raw Magnetometer:")
124-
(raw_mag_x, raw_mag_y, raw_mag_z,) = bno.raw_magnetic
132+
(
133+
raw_mag_x,
134+
raw_mag_y,
135+
raw_mag_z,
136+
) = bno.raw_magnetic
125137
print(
126138
"X: 0x{0:04X} Y: 0x{1:04X} Z: 0x{2:04X} LSB".format(
127139
raw_mag_x, raw_mag_y, raw_mag_z

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
# Author details
3535
author="Adafruit Industries",
3636
author_email="[email protected]",
37-
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-busdevice",],
37+
install_requires=[
38+
"Adafruit-Blinka",
39+
"adafruit-circuitpython-busdevice",
40+
],
3841
# Choose your license
3942
license="MIT",
4043
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)