[tox] envlist = py38, py39, py310, py311, docs, flake8 [gh-actions] python = 2.7: py27 3.6: py36 3.7: py37 3.8: py38 3.9: py39 3.10: py310 3.11: py311 3.12: py312 [testenv] deps = jaconv coverage scripttest mock pytest!=3.2.0,!=3.3.0 pytest-cov pytest-mock hypothesis>4 python-barcode commands = pytest passenv = ESCPOS_CAPABILITIES_PICKLE_DIR, ESCPOS_CAPABILITIES_FILE, CI, TRAVIS, TRAVIS_*, APPVEYOR, APPVEYOR_*, CODECOV_* setenv = PY_IGNORE_IMPORTMISMATCH=1 [testenv:docs] basepython = python changedir = doc deps = sphinx>=3.0.0 setuptools_scm python-barcode sphinxcontrib-spelling>=7.2.0 sphinxcontrib.datatemplates sphinx_rtd_theme pycups commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:flake8] basepython = python deps = flake8 flake8-docstrings commands = flake8 [testenv:mypy] basepython = python deps = mypy types-six types-PyYAML types-appdirs types-Pillow jaconv commands = mypy src