From 89aaae0186b3b4b08f6331c8a0f715a128231bec Mon Sep 17 00:00:00 2001 From: Patrick Kanzler <4189642+patkan@users.noreply.github.com> Date: Sun, 17 Sep 2023 23:24:16 +0200 Subject: [PATCH] get mypy configuration change from #547 (#567) --- pyproject.toml | 12 ++++++++++++ setup.cfg | 6 +++--- tox.ini | 8 +++++--- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8bbdf68..135d070 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,3 +13,15 @@ testpaths = [ "src/escpos", "escpos", ] + +[[tool.mypy.overrides]] +module = ["pytest", + "jaconv", + "scripttest", + "barcode.*", + "qrcode", + "usb.*", + "cups", + "win32print" + ] +ignore_missing_imports = true diff --git a/setup.cfg b/setup.cfg index bf5ff86..0df7ca4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -48,13 +48,13 @@ install_requires = setup_requires = setuptools_scm tests_require = jaconv - tox - pytest!=3.2.0,!=3.3.0 + tox>=4.11 + pytest>=7.4 pytest-cov pytest-mock scripttest mock - hypothesis>4 + hypothesis>=6.83 flake8 sphinxcontrib-spelling>=8.0.0 diff --git a/tox.ini b/tox.ini index b070b8d..f80d268 100644 --- a/tox.ini +++ b/tox.ini @@ -17,10 +17,10 @@ deps = jaconv coverage scripttest mock - pytest!=3.2.0,!=3.3.0 + pytest>=7.4 pytest-cov pytest-mock - hypothesis>4 + hypothesis>=6.83 python-barcode extras = all commands = pytest @@ -51,9 +51,11 @@ commands = flake8 basepython = python deps = mypy types-six + types-mock types-PyYAML types-appdirs types-Pillow types-pyserial + hypothesis>=6.83 jaconv -commands = mypy src +commands = mypy src test