1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

add flake8-checks to travis

This commit is contained in:
Patrick Kanzler
2017-01-30 02:29:08 +01:00
parent 81028f9a35
commit 337e8ee19e
6 changed files with 11 additions and 0 deletions

View File

@@ -33,9 +33,11 @@ def str_to_bool(string):
"""
return string.lower() in ('y', 'yes', '1', 'true')
# A list of functions that work better with a newline to be sent after them.
REQUIRES_NEWLINE = ('qr', 'barcode', 'text', 'block_text')
# Used in demo method
# Key: The name of escpos function and the argument passed on the CLI. Some
# manual translation is done in the case of barcodes_a -> barcode.
@@ -568,5 +570,6 @@ def demo(printer, **kwargs):
command(**params)
printer.cut()
if __name__ == '__main__':
main()

View File

@@ -20,4 +20,5 @@ class CodePageManager:
def get_encoding(self, encoding):
return self.data[encoding]
CodePages = CodePageManager(CAPABILITIES['encodings'])