Skip to content

Commit a5d59f8

Browse files
committed
fix linting
1 parent 6951f8c commit a5d59f8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

adafruit_esp32spi/adafruit_esp32spi_socket.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
* Author(s): ladyada
3030
"""
3131

32+
# pylint: disable=no-name-in-module
3233

3334
import time
3435
import gc
3536
from micropython import const
36-
import adafruit_esp32spi
37+
from adafruit_esp32spi import adafruit_esp32spi
3738

3839
_the_interface = None # pylint: disable=invalid-name
3940
def set_interface(iface):

examples/esp32spi_wsgiserver.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# esp32_reset = DigitalInOut(board.D5)
3838

3939
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
40-
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset, gpio0_pin=esp32_gpio0) # pylint: disable=line-too-long
40+
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset) # pylint: disable=line-too-long
4141

4242
"""Use below for Most Boards"""
4343
status_light = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.2) # Uncomment for Most Boards
@@ -169,19 +169,19 @@ def led_color(environ): # pylint: disable=unused-argument
169169
# Here we create our application, setting the static directory location
170170
# and registering the above request_handlers for specific HTTP requests
171171
# we want to listen and respond to.
172-
static_dir = "/static"
172+
static = "/static"
173173
try:
174-
static_files = os.listdir(static_dir)
174+
static_files = os.listdir(static)
175175
if "index.html" not in static_files:
176176
raise RuntimeError("""
177177
This example depends on an index.html, but it isn't present.
178-
Please add it to the {0} directory""".format(static_dir))
178+
Please add it to the {0} directory""".format(static))
179179
except (OSError) as e:
180180
raise RuntimeError("""
181181
This example depends on a static asset directory.
182-
Please create one named {0} in the root of the device filesystem.""".format(static_dir))
182+
Please create one named {0} in the root of the device filesystem.""".format(static))
183183

184-
web_app = SimpleWSGIApplication(static_dir=static_dir)
184+
web_app = SimpleWSGIApplication(static_dir=static)
185185
web_app.on("GET", "/led_on", led_on)
186186
web_app.on("GET", "/led_off", led_off)
187187
web_app.on("POST", "/ajax/ledcolor", led_color)

0 commit comments

Comments
 (0)