diff --git a/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt b/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt index 66801459769..60ef86f66b8 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.ansible-doc.txt @@ -1,5 +1,5 @@ # edit "sanity.ansible-doc.in" and generate with: hacking/update-sanity-requirements.py --test ansible-doc -Jinja2==3.1.2 -MarkupSafe==2.1.3 -packaging==23.2 +Jinja2==3.1.3 +MarkupSafe==2.1.5 +packaging==24.0 PyYAML==6.0.1 diff --git a/test/lib/ansible_test/_data/requirements/sanity.changelog.txt b/test/lib/ansible_test/_data/requirements/sanity.changelog.txt index d763bad2425..cc5b635cb55 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.changelog.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.changelog.txt @@ -1,9 +1,9 @@ # edit "sanity.changelog.in" and generate with: hacking/update-sanity-requirements.py --test changelog -antsibull-changelog==0.23.0 +antsibull-changelog==0.26.0 docutils==0.18.1 -packaging==23.2 +packaging==24.0 PyYAML==6.0.1 rstcheck==5.0.0 semantic-version==2.10.0 types-docutils==0.18.3 -typing_extensions==4.8.0 +typing_extensions==4.10.0 diff --git a/test/lib/ansible_test/_data/requirements/sanity.import.plugin.txt b/test/lib/ansible_test/_data/requirements/sanity.import.plugin.txt index 56366b77799..9116ed98c39 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.import.plugin.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.import.plugin.txt @@ -1,4 +1,4 @@ # edit "sanity.import.plugin.in" and generate with: hacking/update-sanity-requirements.py --test import.plugin -Jinja2==3.1.2 -MarkupSafe==2.1.3 +Jinja2==3.1.3 +MarkupSafe==2.1.5 PyYAML==6.0.1 diff --git a/test/lib/ansible_test/_data/requirements/sanity.mypy.txt b/test/lib/ansible_test/_data/requirements/sanity.mypy.txt index f6a47fb08b7..651aea85961 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.mypy.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.mypy.txt @@ -1,18 +1,18 @@ # edit "sanity.mypy.in" and generate with: hacking/update-sanity-requirements.py --test mypy cffi==1.16.0 -cryptography==41.0.4 -Jinja2==3.1.2 -MarkupSafe==2.1.3 -mypy==1.5.1 +cryptography==42.0.5 +Jinja2==3.1.3 +MarkupSafe==2.1.5 +mypy==1.9.0 mypy-extensions==1.0.0 -packaging==23.2 +packaging==24.0 pycparser==2.21 tomli==2.0.1 types-backports==0.1.3 -types-paramiko==3.3.0.0 -types-PyYAML==6.0.12.12 -types-requests==2.31.0.7 -types-setuptools==68.2.0.0 -types-toml==0.10.8.7 -typing_extensions==4.8.0 -urllib3==2.0.6 +types-paramiko==3.4.0.20240311 +types-PyYAML==6.0.12.20240311 +types-requests==2.31.0.20240311 +types-setuptools==69.2.0.20240317 +types-toml==0.10.8.20240310 +typing_extensions==4.10.0 +urllib3==2.2.1 diff --git a/test/lib/ansible_test/_data/requirements/sanity.pep8.txt b/test/lib/ansible_test/_data/requirements/sanity.pep8.txt index 1a36d4da771..51d2b644cda 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.pep8.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.pep8.txt @@ -1,2 +1,2 @@ # edit "sanity.pep8.in" and generate with: hacking/update-sanity-requirements.py --test pep8 -pycodestyle==2.11.0 +pycodestyle==2.11.1 diff --git a/test/lib/ansible_test/_data/requirements/sanity.pylint.txt b/test/lib/ansible_test/_data/requirements/sanity.pylint.txt index c3144fe555b..b6bdec5e81d 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.pylint.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.pylint.txt @@ -1,11 +1,11 @@ # edit "sanity.pylint.in" and generate with: hacking/update-sanity-requirements.py --test pylint -astroid==3.0.0 -dill==0.3.7 -isort==5.12.0 +astroid==3.1.0 +dill==0.3.8 +isort==5.13.2 mccabe==0.7.0 -platformdirs==3.11.0 -pylint==3.0.1 +platformdirs==4.2.0 +pylint==3.1.0 PyYAML==6.0.1 tomli==2.0.1 -tomlkit==0.12.1 -typing_extensions==4.8.0 +tomlkit==0.12.4 +typing_extensions==4.10.0 diff --git a/test/lib/ansible_test/_data/requirements/sanity.runtime-metadata.txt b/test/lib/ansible_test/_data/requirements/sanity.runtime-metadata.txt index 4af9b95ed7b..8e6e2cebc91 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.runtime-metadata.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.runtime-metadata.txt @@ -1,3 +1,3 @@ # edit "sanity.runtime-metadata.in" and generate with: hacking/update-sanity-requirements.py --test runtime-metadata PyYAML==6.0.1 -voluptuous==0.13.1 +voluptuous==0.14.2 diff --git a/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt b/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt index 4e24d64de3b..fba0da1d4aa 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt @@ -1,6 +1,6 @@ # edit "sanity.validate-modules.in" and generate with: hacking/update-sanity-requirements.py --test validate-modules antsibull-docs-parser==1.0.0 -Jinja2==3.1.2 -MarkupSafe==2.1.3 +Jinja2==3.1.3 +MarkupSafe==2.1.5 PyYAML==6.0.1 -voluptuous==0.13.1 +voluptuous==0.14.2 diff --git a/test/lib/ansible_test/_data/requirements/sanity.yamllint.txt b/test/lib/ansible_test/_data/requirements/sanity.yamllint.txt index bafd30b68d2..2c91d9e99e5 100644 --- a/test/lib/ansible_test/_data/requirements/sanity.yamllint.txt +++ b/test/lib/ansible_test/_data/requirements/sanity.yamllint.txt @@ -1,4 +1,4 @@ # edit "sanity.yamllint.in" and generate with: hacking/update-sanity-requirements.py --test yamllint -pathspec==0.11.2 +pathspec==0.12.1 PyYAML==6.0.1 -yamllint==1.32.0 +yamllint==1.35.1 diff --git a/test/lib/ansible_test/_internal/commands/sanity/mypy.py b/test/lib/ansible_test/_internal/commands/sanity/mypy.py index 4d580e933e3..0465951d3d3 100644 --- a/test/lib/ansible_test/_internal/commands/sanity/mypy.py +++ b/test/lib/ansible_test/_internal/commands/sanity/mypy.py @@ -19,6 +19,7 @@ from . import ( from ...constants import ( CONTROLLER_PYTHON_VERSIONS, REMOTE_ONLY_PYTHON_VERSIONS, + SUPPORTED_PYTHON_VERSIONS, ) from ...test import ( @@ -36,6 +37,7 @@ from ...util import ( ANSIBLE_TEST_CONTROLLER_ROOT, ApplicationError, is_subdir, + str_to_version, ) from ...util_common import ( @@ -83,6 +85,13 @@ class MypyTest(SanityMultipleVersion): """True if the test requires PyPI, otherwise False.""" return True + @property + def supported_python_versions(self) -> t.Optional[tuple[str, ...]]: + """A tuple of supported Python versions or None if the test does not depend on specific Python versions.""" + # Because the version of typeshed mypy use in 1.9 doesn't support 3.7, neither does mypy 1.9. + # see: https://mypy-lang.blogspot.com/2024/03/mypy-19-released.html + return tuple(version for version in SUPPORTED_PYTHON_VERSIONS if str_to_version(version) >= (3, 8)) + def test(self, args: SanityConfig, targets: SanityTargets, python: PythonConfig) -> TestResult: settings = self.load_processor(args, python.version) diff --git a/test/sanity/code-smell/deprecated-config.requirements.txt b/test/sanity/code-smell/deprecated-config.requirements.txt index ae96cdf47b6..42c1825adf2 100644 --- a/test/sanity/code-smell/deprecated-config.requirements.txt +++ b/test/sanity/code-smell/deprecated-config.requirements.txt @@ -1,4 +1,4 @@ # edit "deprecated-config.requirements.in" and generate with: hacking/update-sanity-requirements.py --test deprecated-config -Jinja2==3.1.2 -MarkupSafe==2.1.3 +Jinja2==3.1.3 +MarkupSafe==2.1.5 PyYAML==6.0.1 diff --git a/test/sanity/code-smell/package-data.requirements.txt b/test/sanity/code-smell/package-data.requirements.txt index ce0fb9cffe0..4faee339caa 100644 --- a/test/sanity/code-smell/package-data.requirements.txt +++ b/test/sanity/code-smell/package-data.requirements.txt @@ -1,10 +1,10 @@ # edit "package-data.requirements.in" and generate with: hacking/update-sanity-requirements.py --test package-data -antsibull-changelog==0.23.0 -build==1.0.3 +antsibull-changelog==0.26.0 +build==1.1.1 docutils==0.18.1 -Jinja2==3.1.2 -MarkupSafe==2.1.3 -packaging==23.2 +Jinja2==3.1.3 +MarkupSafe==2.1.5 +packaging==24.0 pyproject_hooks==1.0.0 PyYAML==6.0.1 resolvelib==1.0.1 @@ -13,5 +13,5 @@ semantic-version==2.10.0 setuptools==66.1.0 tomli==2.0.1 types-docutils==0.18.3 -typing_extensions==4.8.0 -wheel==0.41.2 +typing_extensions==4.10.0 +wheel==0.43.0 diff --git a/test/sanity/code-smell/pymarkdown.requirements.txt b/test/sanity/code-smell/pymarkdown.requirements.txt index f906e14001a..c1571c9cd68 100644 --- a/test/sanity/code-smell/pymarkdown.requirements.txt +++ b/test/sanity/code-smell/pymarkdown.requirements.txt @@ -1,9 +1,9 @@ # edit "pymarkdown.requirements.in" and generate with: hacking/update-sanity-requirements.py --test pymarkdown -application-properties==0.8.1 +application_properties==0.8.2 Columnar==1.4.1 -pymarkdownlnt==0.9.13.4 +pymarkdownlnt==0.9.18 PyYAML==6.0.1 tomli==2.0.1 -toolz==0.12.0 -typing_extensions==4.8.0 -wcwidth==0.2.8 +toolz==0.12.1 +typing_extensions==4.10.0 +wcwidth==0.2.13 diff --git a/test/sanity/code-smell/update-bundled.requirements.txt b/test/sanity/code-smell/update-bundled.requirements.txt index 53f1e434213..76bf9c5854d 100644 --- a/test/sanity/code-smell/update-bundled.requirements.txt +++ b/test/sanity/code-smell/update-bundled.requirements.txt @@ -1,2 +1,2 @@ # edit "update-bundled.requirements.in" and generate with: hacking/update-sanity-requirements.py --test update-bundled -packaging==23.2 +packaging==24.0