diff --git a/pytype_runner.py b/pytype_runner.py index 4bd59b59..88af57b4 100755 --- a/pytype_runner.py +++ b/pytype_runner.py @@ -4,7 +4,7 @@ import selectors import shlex import sys -from logging import INFO, basicConfig, info +from logging import INFO, basicConfig, info, fatal from subprocess import PIPE, Popen from typing import Dict, List, TextIO, Tuple @@ -150,6 +150,9 @@ def to_markdown(me, fp, returncode, results, branch_url): def setup_and_run_pytype_action(script_name: str): + if sys.version_info > (3, 11): + fatal("pytype does not yet work well enough when hosted on Python 3.12") + sys.exit(5) config = load("pyproject.toml") pytype = config["tool"].get("pytype") xfail_files = pytype.get("xfail", []) if pytype else [] diff --git a/tox.ini b/tox.ini index 190f6b1c..e1a39ff4 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ # .github/workflows/main.yml is set up to test with 3.11, 3.12 and 3.13 in parallel. # Therefore, use three environments: One with 3.11, one with 3.12 and one with 3.13: # -envlist = py311-covcp-check-mdreport, py312-cov-pytype, py313-cov-lint-pyright +envlist = py311-covcp-check-pytype-mdreport, py312-cov, py313-cov-lint-pyright isolated_build = true skip_missing_interpreters = true requires =