python-escpos/tox.ini
Alexandre Detiste 66a2e78e16
start removal of six and improve type annotation (#607)
* fix unfinished Python2 -> 3 translation
* remove some six usage
* annotate
* fix regression in Six removal
* mypy: self.enf is always defined
* fix return type of cups.py
* Usb idVendor/idProduct are integers
* self.default_args is always defined
* tweak usb_args, PEP589 is better
* lp.py: reassure mypy
* correctly cast call to CashDrawerError()
* update CUPS test
* add missing close() method in metaclass
* document a bug in typeshed
* query_status() returns bytes as seen in constants.py
* remove more SIX usage
* test examples too
* remove type comment where type is annotated
* adapt behavior of cups printer to match other implementations

---------

Co-authored-by: Patrick Kanzler <dev@pkanzler.de>
Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
2023-12-16 22:02:24 +01:00

65 lines
1.4 KiB
INI

[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>=7.4
pytest-cov
pytest-mock
hypothesis>=6.83
python-barcode>=0.15.0,<1
extras = all
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>=7.2.3
setuptools_scm
python-barcode>=0.15.0,<1
sphinx-argparse
sphinxcontrib-spelling>=8.0.0
sphinxcontrib.datatemplates
sphinx-autodoc-typehints
sphinx_rtd_theme
pycups
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -W -b spelling -d {envtmpdir}/doctrees . {envtmpdir}/spelling
[testenv:flake8]
basepython = python
deps = flake8
flake8-docstrings
commands = flake8
[testenv:mypy]
basepython = python
deps = mypy
types-six
types-mock
types-PyYAML
types-appdirs
types-Pillow
types-pyserial
types-pywin32>=306.0.0.6
types-flask
hypothesis>=6.83
jaconv
commands = mypy src test examples