Skip to content
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

Add linting issues #24

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 4 additions & 2 deletions adafruit_mcp2515/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2020 Bryan Siepert for Adafruit Industries

Check failure on line 1 in adafruit_mcp2515/__init__.py

View workflow job for this annotation

GitHub Actions / test

reformatted
#
# SPDX-License-Identifier: MIT
"""
Expand Down Expand Up @@ -327,6 +327,8 @@
_TransmitBuffer(
CTRL_REG=_TXB0CTRL,
STD_ID_REG=_TXB0SIDH,


INT_FLAG_MASK=_TX0IF,
LOAD_CMD=_LOAD_TX0,
SEND_CMD=_SEND_TX0,
Expand Down Expand Up @@ -382,9 +384,9 @@
else:
new_mode = _MODE_NORMAL

self._set_mode(new_mode)

Check failure on line 387 in adafruit_mcp2515/__init__.py

View workflow job for this annotation

GitHub Actions / test

Unused argument 'x'

def send(self, message_obj):
def send(self, message_obj, x):
"""Send a message on the bus with the given data and id. If the message could not be sent
due to a full fifo or a bus error condition, RuntimeError is raised.

Expand Down Expand Up @@ -452,7 +454,7 @@
sender_id, message_length, extended=extended
)
else:
frame_obj = Message(
frame_obj = Message(
sender_id,
data=bytes(self._buffer[5 : 5 + message_length]),
extended=extended,
Expand Down
Loading