diff --git a/pyproject.toml b/pyproject.toml index 5ccbb8ecd6..06eac3ae97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,7 @@ ensure_newline_before_comments = true line_length = 88 [tool.mypy] -python_version = 3.10 +python_version = "3.10" strict = true color_output = true error_summary = true @@ -107,7 +107,7 @@ disallow_any_generics = true # site-packages is here to help vscode mypy integration getting confused exclude = "(build|dist|test/local-content|site-packages|~/.pyenv|examples/playbooks/collections|plugins/modules)" # https://github.com/python/mypy/issues/12664 -no_incremental = true +incremental = false [[tool.mypy.overrides]] module = [ diff --git a/test/test_schemas.py b/test/test_schemas.py index cfa3bd17be..b2744a8481 100644 --- a/test/test_schemas.py +++ b/test/test_schemas.py @@ -101,7 +101,7 @@ def test_spdx() -> None: ) else: warnings.warn( - "test_spdx failure was ignored because constraints were not pinned (PIP_CONSTRAINTS). This is expected for py39 and py-devel jobs.", + "test_spdx failure was ignored because constraints were not pinned (PIP_CONSTRAINTS). This is expected for py310 and py-devel jobs.", category=pytest.PytestWarning, stacklevel=1, ) diff --git a/tox.ini b/tox.ini index 9290d6b2da..305af3660b 100644 --- a/tox.ini +++ b/tox.ini @@ -66,7 +66,7 @@ setenv = COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}} COVERAGE_PROCESS_START={toxinidir}/pyproject.toml PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt - devel,pkg,pre,py39: PIP_CONSTRAINT = /dev/null + devel,pkg,pre,py310: PIP_CONSTRAINT = /dev/null PIP_DISABLE_PIP_VERSION_CHECK = 1 PRE_COMMIT_COLOR = always FORCE_COLOR = 1