Skip to content

Commit

Permalink
Merge pull request #104 from jepler/remove-bad-whitespace-directive
Browse files Browse the repository at this point in the history
remove bad-whitespace pylint directive
  • Loading branch information
makermelissa authored Aug 27, 2020
2 parents 01f3f66 + 790c294 commit 6fc889d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions adafruit_esp32spi/adafruit_esp32spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI.git"

# pylint: disable=bad-whitespace
_SET_NET_CMD = const(0x10)
_SET_PASSPHRASE_CMD = const(0x11)
_SET_AP_NET_CMD = const(0x18)
Expand Down Expand Up @@ -123,7 +122,6 @@
ADC_ATTEN_DB_2_5 = const(1)
ADC_ATTEN_DB_6 = const(2)
ADC_ATTEN_DB_11 = const(3)
# pylint: enable=bad-whitespace


class ESP_SPIcontrol: # pylint: disable=too-many-public-methods, too-many-instance-attributes
Expand Down
2 changes: 1 addition & 1 deletion adafruit_esp32spi/adafruit_esp32spi_wifimanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

from time import sleep
from micropython import const
import adafruit_requests as requests
from adafruit_esp32spi import adafruit_esp32spi
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
import adafruit_requests as requests


class ESPSPI_WiFiManager:
Expand Down
2 changes: 1 addition & 1 deletion adafruit_esp32spi/adafruit_esp32spi_wsgiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
import io
import gc
from micropython import const
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_requests import parse_headers
import adafruit_esp32spi.adafruit_esp32spi_socket as socket

_the_interface = None # pylint: disable=invalid-name

Expand Down
6 changes: 3 additions & 3 deletions examples/esp32spi_cheerlights.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import busio
from digitalio import DigitalInOut

from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager

import neopixel
import adafruit_fancyled.adafruit_fancyled as fancy

from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager

# Get wifi details and more from a secrets.py file
try:
from secrets import secrets
Expand Down
2 changes: 1 addition & 1 deletion examples/esp32spi_localtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import busio
from digitalio import DigitalInOut
import neopixel
import rtc
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
import rtc

# Get wifi details and more from a secrets.py file
try:
Expand Down
2 changes: 1 addition & 1 deletion examples/esp32spi_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import board
import busio
from digitalio import DigitalInOut
import adafruit_requests as requests
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_esp32spi import adafruit_esp32spi
import adafruit_requests as requests

# Get wifi details and more from a secrets.py file
try:
Expand Down
2 changes: 1 addition & 1 deletion examples/esp32spi_wpa2ent_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import busio
from digitalio import DigitalInOut

import adafruit_requests as requests
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_esp32spi import adafruit_esp32spi
import adafruit_requests as requests

# Version number comparison code. Credit to gnud on stackoverflow
# (https://stackoverflow.com/a/1714190), swapping out cmp() to
Expand Down
2 changes: 1 addition & 1 deletion examples/server/esp32spi_wsgiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def led_color(environ): # pylint: disable=unused-argument
Please create one named {0} in the root of the device filesystem.""".format(
static
)
)
) from e

web_app = SimpleWSGIApplication(static_dir=static)
web_app.on("GET", "/led_on", led_on)
Expand Down

0 comments on commit 6fc889d

Please sign in to comment.