Skip to content

Commit

Permalink
Merge pull request #21 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
brentru authored Sep 21, 2020
2 parents 08066a6 + 18e9648 commit 8ae1012
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions adafruit_wiznet5k/adafruit_wiznet5k.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k.git"

# pylint: disable=bad-whitespace

# Wiznet5k Registers
REG_MR = const(0x0000) # Mode
Expand Down Expand Up @@ -124,7 +123,6 @@
SNMR_MACRAW = const(0x04)
SNMR_PPPOE = const(0x05)

# pylint: enable=bad-whitespace
MAX_PACKET = const(4000)
LOCAL_PORT = const(0x400)
# Default hardware MAC address
Expand Down
2 changes: 0 additions & 2 deletions adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
from adafruit_wiznet5k.adafruit_wiznet5k_socket import htonl, htons

# pylint: disable=bad-whitespace

# DHCP State Machine
STATE_DHCP_START = const(0x00)
Expand Down Expand Up @@ -87,7 +86,6 @@
OPT_END = 255


# pylint: enable=bad-whitespace
_BUFF = bytearray(317)


Expand Down
2 changes: 0 additions & 2 deletions adafruit_wiznet5k/adafruit_wiznet5k_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
from adafruit_wiznet5k.adafruit_wiznet5k_socket import htons

# pylint: disable=bad-whitespace

QUERY_FLAG = const(0x00)
OPCODE_STANDARD_QUERY = const(0x00)
Expand All @@ -54,7 +53,6 @@
INVALID_RESPONSE = const(-4)

DNS_PORT = const(0x35) # port used for DNS request
# pylint: enable=bad-whitespace


class DNS:
Expand Down
2 changes: 0 additions & 2 deletions adafruit_wiznet5k/adafruit_wiznet5k_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ def htons(x):
return (((x) << 8) & 0xFF00) | (((x) >> 8) & 0xFF)


# pylint: disable=bad-whitespace
SOCK_STREAM = const(0x21) # TCP
TCP_MODE = 80
SOCK_DGRAM = const(0x02) # UDP
AF_INET = const(3)
NO_SOCKET_AVAIL = const(255)
# pylint: enable=bad-whitespace

# keep track of sockets we allocate
SOCKETS = []
Expand Down
2 changes: 1 addition & 1 deletion examples/wiznet5k_aio_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import board
import busio
from digitalio import DigitalInOut
import adafruit_requests as requests
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
import adafruit_requests as requests

# Get Adafruit.io details from a secrets.py file
try:
Expand Down
6 changes: 3 additions & 3 deletions examples/wiznet5k_cheerlights.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import busio
from digitalio import DigitalInOut

from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
import adafruit_requests as requests

import neopixel
import adafruit_fancyled.adafruit_fancyled as fancy
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket

cs = DigitalInOut(board.D10)
spi_bus = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
Expand Down Expand Up @@ -51,7 +51,7 @@
raise AssertionError(
"Failed to resolve hostname, \
please check your router's DNS configuration."
)
) from error
continue
if not value:
continue
Expand Down

0 comments on commit 8ae1012

Please sign in to comment.