enable flake8-docstrings
This commit is contained in:
parent
fbd93e3540
commit
b1011a1ee5
@ -1,3 +1,5 @@
|
||||
""" Example for printing barcodes.
|
||||
"""
|
||||
from escpos.printer import Usb
|
||||
|
||||
# Adapt to your needs
|
||||
|
@ -3,7 +3,6 @@ argcomplete==3.0.8
|
||||
blinker==1.6.2
|
||||
click==8.1.3
|
||||
Flask==2.3.2
|
||||
future==0.18.3
|
||||
itsdangerous==2.1.2
|
||||
Jinja2==3.1.2
|
||||
MarkupSafe==2.1.2
|
||||
|
@ -31,7 +31,7 @@ project_urls =
|
||||
Release Notes = https://github.com/python-escpos/python-escpos/releases
|
||||
|
||||
[options]
|
||||
python_requires = >=3.6
|
||||
python_requires = >=3.8
|
||||
zip_safe = false
|
||||
include_package_data = true
|
||||
install_requires =
|
||||
@ -46,7 +46,6 @@ install_requires =
|
||||
PyYAML
|
||||
argparse
|
||||
argcomplete
|
||||
future
|
||||
importlib_resources
|
||||
setup_requires = setuptools_scm
|
||||
tests_require =
|
||||
@ -65,4 +64,3 @@ tests_require =
|
||||
exclude = .git,.tox,.github,.eggs,__pycache__,doc/conf.py,build,dist,capabilities-data,test,src/escpos/constants.py
|
||||
max-line-length = 120
|
||||
extend-ignore = E203, W503
|
||||
# future-imports = absolute_import, division, print_function, unicode_literals # we are not there yet
|
||||
|
@ -423,7 +423,7 @@ if _WIN32PRINT:
|
||||
self.hPrinter = None
|
||||
|
||||
def _raw(self, msg):
|
||||
"""Print any command sent in raw format
|
||||
"""Print any command sent in raw format.
|
||||
|
||||
:param msg: arbitrary code to be printed
|
||||
:type msg: bytes
|
||||
@ -583,7 +583,7 @@ if not sys.platform.startswith("win"):
|
||||
self.lp.terminate()
|
||||
|
||||
def flush(self):
|
||||
"""End line and wait for new commands"""
|
||||
"""End line and wait for new commands."""
|
||||
if self.lp.stdin.writable():
|
||||
self.lp.stdin.write(b"\n")
|
||||
if self.lp.stdin.closed is False:
|
||||
|
Loading…
x
Reference in New Issue
Block a user