Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

remove bad-whitespace pylint directive #19

Merged
merged 1 commit into from
Aug 23, 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
4 changes: 0 additions & 4 deletions adafruit_thermal_printer/thermal_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermal_Printer.git"


# pylint: disable=bad-whitespace
# Internally used constants.
_UPDOWN_MASK = const(1 << 2)
_BOLD_MASK = const(1 << 3)
Expand All @@ -74,7 +73,6 @@
SIZE_LARGE = const(2)
UNDERLINE_THIN = const(0)
UNDERLINE_THICK = const(1)
# pylint: enable=bad-whitespace


# Disable too many instance members warning. This is not something pylint can
Expand Down Expand Up @@ -106,7 +104,6 @@
class ThermalPrinter:
"""Thermal printer for printers with firmware version 2.68 or higher."""

# pylint: disable=bad-whitespace
# Barcode types. These vary based on the firmware version so are made
# as class-level variables that users can reference (i.e.
# ThermalPrinter.UPC_A, etc) and write code that is independent of the
Expand All @@ -120,7 +117,6 @@ class ThermalPrinter:
CODABAR = 71
CODE93 = 72
CODE128 = 73
# pylint: enable=bad-whitespace

class _PrintModeBit:
# Internal descriptor class to simplify printer mode change properties.
Expand Down
4 changes: 0 additions & 4 deletions adafruit_thermal_printer/thermal_printer_264.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermal_Printer.git"


# pylint: disable=bad-whitespace
# Internally used constants.
_INVERSE_MASK = const(1 << 1) # Not in 2.6.8 firmware
# pylint: enable=bad-whitespace


# Legacy behavior class for printers with firmware 2.64 up to 2.68.
Expand All @@ -57,7 +55,6 @@ class ThermalPrinter(thermal_printer.ThermalPrinter):
NOT including) 2.68.
"""

# pylint: disable=bad-whitespace
# Barcode types. These vary based on the firmware version so are made
# as class-level variables that users can reference (i.e.
# ThermalPrinter.UPC_A, etc) and write code that is independent of the
Expand All @@ -71,7 +68,6 @@ class ThermalPrinter(thermal_printer.ThermalPrinter):
CODABAR = 71
CODE93 = 72
CODE128 = 73
# pylint: enable=bad-whitespace

def __init__(
self, uart, byte_delay_s=0.00057346, dot_feed_s=0.0021, dot_print_s=0.03
Expand Down
4 changes: 0 additions & 4 deletions adafruit_thermal_printer/thermal_printer_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Thermal_Printer.git"


# pylint: disable=bad-whitespace
# Internally used constants.
_INVERSE_MASK = const(1 << 1) # Not in 2.6.8 firmware
# pylint: enable=bad-whitespace


# Legacy behavior class for printers with firmware before 2.64.
Expand All @@ -55,7 +53,6 @@
class ThermalPrinter(thermal_printer.ThermalPrinter):
"""Thermal printer for printers with firmware version before 2.64."""

# pylint: disable=bad-whitespace
# Barcode types. These vary based on the firmware version so are made
# as class-level variables that users can reference (i.e.
# ThermalPrinter.UPC_A, etc) and write code that is independent of the
Expand All @@ -71,7 +68,6 @@ class ThermalPrinter(thermal_printer.ThermalPrinter):
CODE128 = 8
CODE11 = 9
MSI = 10
# pylint: enable=bad-whitespace

def __init__(
self, uart, byte_delay_s=0.00057346, dot_feed_s=0.0021, dot_print_s=0.03
Expand Down