Skip to content

remove bad-whitespace pylint directive #21

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 3 commits into from
Sep 21, 2020
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: 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