From ec4cad2600704741975b4204a4683fb6f77556e7 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Sun, 27 Aug 2023 17:36:21 +0300 Subject: [PATCH] tox: try pytype, still fails --- .github/workflows/ci.yml | 2 +- skytools/basetypes.py | 2 +- tox.ini | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c8ed0b..6a7eb93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: test: - - {PY: "3.11", TOXENV: "lint"} + - {PY: "3.10", TOXENV: "lint"} steps: - name: "Checkout" uses: actions/checkout@v3 diff --git a/skytools/basetypes.py b/skytools/basetypes.py index 42c75ab..85fd836 100644 --- a/skytools/basetypes.py +++ b/skytools/basetypes.py @@ -95,7 +95,7 @@ def fileno(self) -> int: raise NotImplementedError FileDescriptorLike = Union[int, HasFileno] try: - from typing_extensions import Buffer + from typing_extensions import Buffer # type: ignore except ImportError: if typing.TYPE_CHECKING: from _typeshed import Buffer # type: ignore diff --git a/tox.ini b/tox.ini index 70236be..e31e99d 100644 --- a/tox.ini +++ b/tox.ini @@ -13,12 +13,13 @@ test_deps = pytest-cov==4.1.0 lint_deps = mypy==1.5.1 - pylint==2.17.5 pyflakes==3.1.0 - #pytype==2023.8.14 typing-extensions==4.7.1 types-setuptools==68.1.0.0 types-psycopg2==2.9.21.11; platform_python_implementation != 'PyPy' +xlint_deps = + pylint==2.17.5 + pytype==2023.8.22 doc_deps = sphinx==7.2.2 docutils==0.20.1 @@ -55,11 +56,12 @@ commands = [testenv:xlint] #changedir = {envsitepackagesdir} -basepython = python3 +basepython = python3.10 deps = {[package]deps} - {[package]lint_deps} {[package]test_deps} + {[package]lint_deps} + {[package]xlint_deps} commands = pylint skytools #pytype skytools