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
|
from escpos.printer import Usb
|
||||||
|
|
||||||
# Adapt to your needs
|
# Adapt to your needs
|
||||||
|
@ -3,7 +3,6 @@ argcomplete==3.0.8
|
|||||||
blinker==1.6.2
|
blinker==1.6.2
|
||||||
click==8.1.3
|
click==8.1.3
|
||||||
Flask==2.3.2
|
Flask==2.3.2
|
||||||
future==0.18.3
|
|
||||||
itsdangerous==2.1.2
|
itsdangerous==2.1.2
|
||||||
Jinja2==3.1.2
|
Jinja2==3.1.2
|
||||||
MarkupSafe==2.1.2
|
MarkupSafe==2.1.2
|
||||||
|
@ -31,7 +31,7 @@ project_urls =
|
|||||||
Release Notes = https://github.com/python-escpos/python-escpos/releases
|
Release Notes = https://github.com/python-escpos/python-escpos/releases
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
python_requires = >=3.6
|
python_requires = >=3.8
|
||||||
zip_safe = false
|
zip_safe = false
|
||||||
include_package_data = true
|
include_package_data = true
|
||||||
install_requires =
|
install_requires =
|
||||||
@ -46,7 +46,6 @@ install_requires =
|
|||||||
PyYAML
|
PyYAML
|
||||||
argparse
|
argparse
|
||||||
argcomplete
|
argcomplete
|
||||||
future
|
|
||||||
importlib_resources
|
importlib_resources
|
||||||
setup_requires = setuptools_scm
|
setup_requires = setuptools_scm
|
||||||
tests_require =
|
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
|
exclude = .git,.tox,.github,.eggs,__pycache__,doc/conf.py,build,dist,capabilities-data,test,src/escpos/constants.py
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
extend-ignore = E203, W503
|
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
|
self.hPrinter = None
|
||||||
|
|
||||||
def _raw(self, msg):
|
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
|
:param msg: arbitrary code to be printed
|
||||||
:type msg: bytes
|
:type msg: bytes
|
||||||
@ -583,7 +583,7 @@ if not sys.platform.startswith("win"):
|
|||||||
self.lp.terminate()
|
self.lp.terminate()
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
"""End line and wait for new commands"""
|
"""End line and wait for new commands."""
|
||||||
if self.lp.stdin.writable():
|
if self.lp.stdin.writable():
|
||||||
self.lp.stdin.write(b"\n")
|
self.lp.stdin.write(b"\n")
|
||||||
if self.lp.stdin.closed is False:
|
if self.lp.stdin.closed is False:
|
||||||
|
3
tox.ini
3
tox.ini
@ -39,7 +39,6 @@ commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = python
|
basepython = python
|
||||||
# TODO add flake8-future
|
|
||||||
# TODO add flake8-docstrings
|
|
||||||
deps = flake8
|
deps = flake8
|
||||||
|
flake8-docstrings
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user