Skip to content

Linted #45

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
Nov 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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
name: pylint (library code)
types: [python]
args:
- --disable=consider-using-f-string
- --disable=consider-using-f-string,duplicate-code
exclude: "^(docs/|examples/|tests/|setup.py$)"
- id: pylint
name: pylint (example code)
Expand Down
4 changes: 2 additions & 2 deletions examples/mcp23Sxx_event_detect_interrupt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

import board
import busio
from digitalio import Direction, Pull
from digitalio import DigitalInOut, Direction, Pull
from RPi import GPIO
from adafruit_mcp230xx.mcp23s17 import MCP23S17

# Initialize the SPI bus:
spi = busio.SPI(board.SCK_1, MOSI=board.MOSI_1, MISO=board.MISO_1)
cs = digitalio.DigitalInOut(board.CS0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised this worked beforehand. It's my understanding that it shouldn't. But regardless the change looks correct.

cs = DigitalInOut(board.CS0)

# Initialize the MCP23S17 chip on the bonnet
mcp = MCP23S17(spi, cs)
Expand Down