From a971bbce7cf44880bf48d8dfe6ad3196308a1121 Mon Sep 17 00:00:00 2001 From: dherrada Date: Mon, 8 Nov 2021 11:19:36 -0500 Subject: [PATCH] Linted --- .pre-commit-config.yaml | 2 +- adafruit_pn532/i2c.py | 2 +- adafruit_pn532/spi.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b9fadc..43d1385 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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) diff --git a/adafruit_pn532/i2c.py b/adafruit_pn532/i2c.py index 50f96bb..f8b2662 100644 --- a/adafruit_pn532/i2c.py +++ b/adafruit_pn532/i2c.py @@ -18,7 +18,7 @@ __version__ = "0.0.0-auto.0" __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PN532.git" import time -import adafruit_bus_device.i2c_device as i2c_device +from adafruit_bus_device import i2c_device from digitalio import Direction from micropython import const from adafruit_pn532.adafruit_pn532 import PN532, BusyError diff --git a/adafruit_pn532/spi.py b/adafruit_pn532/spi.py index 88ebc7c..780e1b1 100644 --- a/adafruit_pn532/spi.py +++ b/adafruit_pn532/spi.py @@ -18,7 +18,7 @@ __version__ = "0.0.0-auto.0" __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PN532.git" import time -import adafruit_bus_device.spi_device as spi_device +from adafruit_bus_device import spi_device from micropython import const from adafruit_pn532.adafruit_pn532 import PN532