Skip to content

pylintrc ignore imports. run black format #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions adafruit_bno08x/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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.

"""

Expand Down
2 changes: 1 addition & 1 deletion adafruit_bno08x/i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

"""

Expand Down
2 changes: 1 addition & 1 deletion adafruit_bno08x/uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

"""

Expand Down
18 changes: 15 additions & 3 deletions examples/bno08x_more_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
# Author details
author="Adafruit Industries",
author_email="[email protected]",
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
Expand Down